1+ import { openModal } from "./helpers/modal.js" ;
2+ import { refreshSpecialTabs , getAllTabs } from "./tabs.js" ;
3+ import { checkForUpdate } from "./helpers/checkForUpdate.js" ;
4+ import { UfsGlobal } from "../scripts/content-scripts/ufs_global.js" ;
5+ import { THEME , THEME_KEY , getTheme , setTheme } from "./helpers/theme.js" ;
6+ import { run as enableSmoothScroll } from "../scripts/smoothScroll.js" ;
17import {
28 isActiveScript ,
39 getCurrentTab ,
@@ -9,8 +15,6 @@ import {
915 checkBlackWhiteList ,
1016 runScriptInTabWithEventChain ,
1117} from "../scripts/helpers/utils.js" ;
12- import { UfsGlobal } from "../scripts/content-scripts/ufs_global.js" ;
13- import { checkForUpdate } from "./helpers/checkForUpdate.js" ;
1418import {
1519 LANG ,
1620 LANG_KEY ,
@@ -19,20 +23,17 @@ import {
1923 setLang ,
2024 t ,
2125} from "./helpers/lang.js" ;
22- import { openModal } from "./helpers/modal.js" ;
2326import {
2427 activeTabIdSaver ,
2528 favoriteScriptsSaver ,
2629 recentScriptsSaver ,
2730} from "./helpers/storage.js" ;
28- import { THEME , THEME_KEY , getTheme , setTheme } from "./helpers/theme.js" ;
2931import {
3032 canAutoRun ,
3133 canClick ,
3234 isTitle ,
3335 viewScriptSource ,
3436} from "./helpers/utils.js" ;
35- import { refreshSpecialTabs , getAllTabs } from "./tabs.js" ;
3637// import _ from "../md/exportScriptsToMd.js";
3738
3839const settingsBtn = document . querySelector ( ".settings" ) ;
@@ -656,6 +657,7 @@ window.addEventListener("scroll", onScrollEnd);
656657// #endregion
657658
658659( async function ( ) {
660+ enableSmoothScroll ( ) ;
659661 trackEvent ( "OPEN-POPUP" ) ;
660662
661663 initTracking ( ) ;
0 commit comments