diff options
| author | Akshay Nair <phenax5@gmail.com> | 2024-08-21 21:32:25 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2024-08-21 21:32:25 +0530 |
| commit | 397f3cdf4862c2912212a00cd799a920b654aa8a (patch) | |
| tree | 1608ff3dc7c97d06d01b6ab1a80fa082cf2669ea /modules/firefox.home/chrome/setupNewTab.uc.js | |
| parent | 1491b71d692a19d11fa2f6bbe25b021303a93bea (diff) | |
| download | nixos-config-397f3cdf4862c2912212a00cd799a920b654aa8a.tar.gz nixos-config-397f3cdf4862c2912212a00cd799a920b654aa8a.zip | |
Move firefox config to autoconfig.js file
Diffstat (limited to '')
| -rw-r--r-- | modules/firefox.home/chrome/setupNewTab.uc.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/modules/firefox.home/chrome/setupNewTab.uc.js b/modules/firefox.home/chrome/setupNewTab.uc.js deleted file mode 100644 index 1eb971c..0000000 --- a/modules/firefox.home/chrome/setupNewTab.uc.js +++ /dev/null @@ -1,20 +0,0 @@ -// ==UserScript== -// @name Custom New Tab -// @version 1.0 -// @description Load a custom link or local file, instead of the default new tab page (about:newtab). -// ==/UserScript== - -// For Firefox 72 onward, see the autoconfig alternative to this: -// https://support.mozilla.org/questions/1251199#answer-1199709 - -globalThis.newtabLinkStarted = true; - -if (!AboutNewTab) { - globalThis.AboutNewTab = ChromeUtils.import('resource:///modules/AboutNewTab.jsm').AboutNewTab; -} - -const newTabUrl = xPref.get('browser.newtab.url') || 'about:blank'; - -AboutNewTab.newTabURL = newTabUrl; - -console.log('Updated new tab url to', newTabUrl); |
