v0.2 #2
33
README.md
Normal file
33
README.md
Normal file
@ -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.
|
Loading…
Reference in New Issue
Block a user