hi guys and girls of mozilla,
ive a little issue with a custom homepage i made which i want to use as my new tab page. im on linux and use firefox 76.0.1 (64bit).
i set … (閱讀更多)
hi guys and girls of mozilla,
ive a little issue with a custom homepage i made which i want to use as my new tab page. im on linux and use firefox 76.0.1 (64bit).
i set up a autoconfig.cfg file with this code:
//
var {classes:Cc,interfaces:Ci,utils:Cu} = Components;
try {
Cu.import("resource:///modules/AboutNewTab.jsm");
var newTabURL = "/home/joe/.mozilla/firefox/h75u1z1z.default/startpage/index.html";
AboutNewTab.newTabURL = newTabURL;
} catch(e){Cu.reportError(e);} // report errors in the Browser Console
i also set up a autoconfig.js file with this code:
// First line should be a comment
pref("general.config.filename", "autoconfig.cfg");
pref("general.config.obscure_value", 0);
pref("general.config.sandbox_enabled", false);
theyre saved in lib/firefox and lib/firefox/defaults/prefs
i then put firefox to open new tabs with a blank page. now it works like this. when i click open a new tab i get a blank page. but in the urlbar is the file selected. now i only need to press enter and i have my new tab page.
the question now is- how can i force firefox to press enter for me. that it opens the file directly and doesnt need me to press enter.
can u spot any errors in the code i copied from a thread in reddits/r/firefox CSS forum?
or is there a setting i can change which makes it the page opens by itself?
ill add two pics- one when i just opend the new tab and one after i clicked enter