From 0bd140006801077b33577c8b07bb6851fa548e6b Mon Sep 17 00:00:00 2001 From: Niklas Date: Thu, 23 Apr 2020 02:26:08 +0200 Subject: [PATCH] added README --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..bbdb2cb --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +[![Build Status](https://drone.srv.kapelle.org/api/badges/niklas/startpage/status.svg?ref=refs/heads/master)](https://drone.srv.kapelle.org/niklas/startpage) + +# How to set the new Tab +## Firefox + +[Reddit thread](https://www.reddit.com/r/startpages/comments/g3qndt/psa_how_to_set_a_custom_new_tab_page_in_firefox/) + +Create 2 files inside of the firefox install directory. + +`${installDir}/defaults/pref/autoconfig.js` +```js +pref("general.config.filename", "autoconfig.cfg"); +pref("general.config.obscure_value", 0); +pref("general.config.sandbox_enabled", false); +``` + +`${installDir}/autoconfig.cfg` +``` +// first line is a comment +var {classes:Cc,interfaces:Ci,utils:Cu} = Components; +var newTabURL = "http://localhost:8080"; +aboutNewTabService = Cc["@mozilla.org/browser/aboutnewtab-service;1"].getService(Ci.nsIAboutNewTabService); +aboutNewTabService.newTabURL = newTabURL; +``` + +Replace the "localhost" line in `autoconfig.cfg` with your URL. +Also you can set the homepage via your normal settings. + +Alternatively you can use a extentions called [New Tab override](https://addons.mozilla.org/en-US/firefox/addon/new-tab-override/). + +## Chrome + +Maybe [this](https://chrome.google.com/webstore/detail/custom-new-tab-url/mmjbdbjnoablegbkcklggeknkfcjkjia) extention. Not tested yet.