diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-02-08 13:15:45 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-02-08 13:15:45 +0530 |
| commit | 653b19aa1e732f56453db383504fe8a5438bda5a (patch) | |
| tree | 5681f12f0b1c8086e03abcf5577ca6c191d917d1 /modules/firefox.home/chrome/customNewTab.uc.js | |
| parent | 168884c4515b77f946b76b55fce207e13ceb217c (diff) | |
| download | nixos-config-653b19aa1e732f56453db383504fe8a5438bda5a.tar.gz nixos-config-653b19aa1e732f56453db383504fe8a5438bda5a.zip | |
Enable firefox
Diffstat (limited to 'modules/firefox.home/chrome/customNewTab.uc.js')
| -rw-r--r-- | modules/firefox.home/chrome/customNewTab.uc.js | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/modules/firefox.home/chrome/customNewTab.uc.js b/modules/firefox.home/chrome/customNewTab.uc.js index 4c8faca..7ea8ee2 100644 --- a/modules/firefox.home/chrome/customNewTab.uc.js +++ b/modules/firefox.home/chrome/customNewTab.uc.js @@ -2,20 +2,19 @@ // @name Custom New Tab // @version 1.0 // @description Load a custom link or local file, instead of the default new tab page +// @include main // @startup UC.customNewTab.updateNewTabURL() // @shutdown UC.customNewTab.destroy(); +// @onlyonce // ==/UserScript== +console.log('------------------------- newtab') (() => { // Managed in about:config const NEWTAB_URL_PREF = 'browser.newtab.url' - console.log('-------------------------------------------'); - console.log('-------------------------------------------'); - console.log('-------------------------------------------'); - if (!AboutNewTab) { - globalThis.AboutNewTab = ChromeUtils.import('resource:///modules/AboutNewTab.jsm').AboutNewTab; + globalThis.AboutNewTab = ChromeUtils.importESModule('resource:///modules/AboutNewTab.sys.mjs').AboutNewTab; } const module = { @@ -28,10 +27,6 @@ }, init() { - console.log('-------------------------------------------'); - console.log('init new tab'); - console.log('-------------------------------------------'); - module.updateNewTabURL(); Services.obs.addObserver(module.updateNewTabURL, 'newtab-url-changed'); }, |
