Essential Firefox Tweaks

I've been using Firefox as my primary web browser since Firefox Quantum was released as a beta (which is right around a year ago). It offered a nice refreshing UI after using Google Chrome for a few years. It also brought with it slightly faster rendering. Chrome might have caught back up but I honestly haven't looked back since making the switch.

Anyway, as much as I love using Firefox, there are a few essential tweaks I find myself making each time I reinstall the application. To apply these changes you'll need to first visit the following special page using your address bar:


Once you visit that page you can search for the values listed in this post and change them to the version on this page. If at any point you want to go back to the default value you can right click on the setting and choose Reset.

Address Bar Double Click Selection Behavior

This is probably the most annoying feature of the browser when I first migrated from Google Chrome. If you double click the URL in the location bar then the entire URL is selected. However, as a web developer, I often have the need to select only certain parts of the URL. For example, if a URL contains /xxx/yyy/zzz, and I double click one of the y values, then I expect only the yyy URL segment to be selected.

Make the following change to fix the double click selection behavior:

browser.urlbar.doubleClickSelectsAll = false

Prevent Ctrl+Scroll from Zooming

This one drives me nuts. I'm very frequently pressing the Ctrl key, and I'm very frequently scrolling. However, I very infrequently want to zoom the page (and I find pressing Ctrl + = and Ctrol + - easy enough). This problem is compounded by the fact that the browser supports scrolling momentum; scroll quickly using your trackpad, release your fingers, and tap Ctrl, and the screen is now frantically zooming and eating through CPU.

Holding the Ctrl key will no longer have any affect when you scroll once you make the following change:

mousewheel.with_control.action = 1

Disable Pocket

Pocket represents some sort of goofy business idea that Mozilla had and is still paying for. It's an invasive integration into the browser, polluting both precious toolbar and context menu real estate.

Make the following change to disable Pocket support:

extensions.pocket.enabled = false

Cleanup New Tab Screen

When creating a new tab I really only care about quickly painting the screen. I'm always either going to paste in a URL or manually type a search query. By default the screen shows a bunch of recommended sites and recently visited sites, which I've never interacted with.

Make the following changes to simplify your new tab screen:

browser.newtabpage.activity-stream.feeds.section.highlights = false
browser.newtabpage.activity-stream.feeds.section.topstories = false
browser.newtabpage.activity-stream.feeds.snippets = false
browser.newtabpage.activity-stream.feeds.topsites = false

Disable Warn on Close Multiple Tabs

When I have a tab that's important, something that I really want to stick around, I'll right click on it and Pin the tab. This will keep the tab around even when I restart the browser (or if my computer crashes). Any other tabs I treat as being ephemeral.

Make the following change to prevent the browser from prompting you to exit when multiple unpinned tabs are open:

browser.tabs.warnOnClose = false
Thomas Hunter II Avatar

Thomas is the author of Advanced Microservices and is a prolific public speaker with a passion for reducing complex problems into simple language and diagrams. His career includes working at Fortune 50's in the Midwest, co-founding a successful startup, and everything in between.