Skip to content

Instantly share code, notes, and snippets.

@JonasAlfredsson
Last active August 16, 2019 20:56
Show Gist options
  • Save JonasAlfredsson/54bbda465c96aff7ac62dbf7dd97b06d to your computer and use it in GitHub Desktop.
Save JonasAlfredsson/54bbda465c96aff7ac62dbf7dd97b06d to your computer and use it in GitHub Desktop.
Some modifications to make Firefox behave more consistent with the Widows version, while also tweaking some security settings.

Firefox Custom Fixes

Firefox on Linux does some things different compared to the Windows counterpart. I generally prefer the Windows way these settings are configred, and the following settings are therefore made to improve the overall experience on Linux.

Open the Configuration Menu

All of these settings are accessed by typing

about:config

inside the URL bar of the Firefox browser. Accept the risks and arrive at a long list. You can search for any setting in the search bar at the top, and change any boolean by double klicking the setting.

Fix Screen Tearing

If Firefox is having trouble with a lot of screen tearing this setting might help.

gfx.xrender.enabled = true

Fix Mouse Behaviour

These settings are done to more conform with Windows behaviour. Before continuing make sure that the following two settings are ticked/enabled inside the menu Firefox -> Preferences -> General -> Browsing

  • Use autoscrolling
  • Use smooth scrolling Then set the folling
middlemouse.contentLoadURL = false
middlemouse.openNewWindow = false
middlemouse.paste = false

and

mousewheel.acceleration.factor = 8
mousewheel.acceleration.start = 1

Fix Click Behaviour

This makes so that klicking URL bar and such are the same as in Windows.

browser.urlbar.doubleClickSelectsAll = false 
browser.urlbar.clickSelectsAll = true

Backspace

If you would like to use backspace as a "back" button change this from 2 to 0.

bowser.backspace_action = 0

Security Settings

These settings enable some functionality that makes for safer browsing.

network.IDN_show_punycode = true

Remove the Pocket extension that comes preinstalled

extensions.pocket.enabled = false

Privacy Settings

These settings disables functions that are a little privacy compromising and/or annoying to have.

Do not send geographical data.

geo.enabled = false

Disable WebRTC (Important if using VPN).

media.peerconnection.enabled = false

Do not accept any notifications through the browser.

dom.webnotifications.enabled = false

Might cause a heavy influx of captchas if this is enabled.

privacy.resistFingerprinting = true

You may also type in telemetry and disable whatever you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment