Git Product home page Git Product logo

firefox-new-tab-override's Introduction

Firefox New Tab Override

Modifying the "browser.newtab.url" preference in Firefox was a very simple way to change the page which is shown when opening a new tab.

By removing it in the version 41 of its browser for "security reasons", Mozilla effectively managed to force its users to use shady, sketchy addons. Many of these extensions require a lot of permissions, and will want to have access to your browsing history and/or bookmarks. Many more won't have the functionalities you're looking for, for instance opening a simple HTML file stored on your local disk.

There's in fact a way to configure the page displayed when opening a new tab, without any addon.

And the result is insanely fast.

Installation

First, download the files mozilla.cfg and local-settings.js of this repo. Open mozilla.cfg in your favorite text editor, and edit the line

var newTabURL = "file:///home/user/homepage/index.html";

to specify what you want to open.

If it is a local file, use file:///. If it's a webpage, just write the URL as https://www...

GNU/Linux

  1. Locate the folder where the Firefox/Waterfox/Pale Moon executable is installed. Ex: /usr/lib/firefox/
  2. Move mozilla.cfg to /usr/lib/firefox/mozilla.cfg
  3. Move local-settings.js to /usr/lib/firefox/defaults/pref/local-settings.js

Windows

  1. Locate the folder where the Firefox/Waterfox/Pale Moon executable is installed. Ex: C:\Program Files\Mozilla Firefox\
  2. Move mozilla.cfg to C:\Program Files\Mozilla Firefox\mozilla.cfg
  3. Move local-settings.js to C:\Program Files\Mozilla Firefox\defaults\pref\local-settings.js

Restart your browser, open a new tab.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.