blob: 1eb971c972550a730efe375187c8782396d4aea7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// ==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);
|