[ Prev ] [ Index ] [ Next ]

Firefox

Created Friday 30 December 2016


I find Firefox to be just a little slower than Chromium. It also renders the web-content a bit worse than its popular opponent - I just really want to get away from the evil Google empire.


Installation

# Firefox from the official repository
$ pacman -S firefox


# Spell Checking
$ pacman -S hunspell hunspell-en
$ yaourt -S hunspell-da



Configuration

# You should check out ASD_and_PSD in Software Performance after setting up Firefox.


Firefox Preferences

# Select Preferences from the browser menu
# To turn off Disk Cache; Advanced > Network > "Cached Web Content" specify 0


About Config

# For additional configuration you can type in about:config in the address bar.


# Default save-session is 15sec; Search for browser.sessionstore.interval and specify 300000


# There's some issues with external programs opening links to Firefox - Already running issue
# To force new links to open in a tab, Search for browser.link.open_newwindow.override.external and specify 3


# To keep the tabs in Fullscreen mode; Search for browser.fullscreen.autohide and specify false


# Recommended header control settings;

# Search for network.http.sendRefererHeader and specify 1
# Search for network.http.referer.XOriginPolicy and specify 1
# Search for network.http.referer.spoofSource and specify true
# Search for network.http.referer.trimmingPolicy and specify 2


# Turn off sponsored content;

# Search for browser.newtabpage.directory.source and leave it blank
# Search for browser.newtabpage.directory.ping and leave it blank


# Disable the Pocket Service (save website for offline read);

# Search for extensions.pocket.api and leave it blank
# Search for extensions.pocket.site and leave it blank
# Search for extensions.pocket.enabled and specify false


# Disable the Social Service API;

# Search for social.directories and leave it blank
# Search for social.shareDirectory and leave it blank
# Search for social.whitelist and leave it blank
# Search for social.remote-install.enabled and specify false
# Search for social.share.activationPanelEnabled and specify false
# Search for social.toast-notifications.enabled and specify false


# Piss annoying feature (on touchpad at least) is the load url on middle-click thingy

# Search for middlemouse.contentLoadURL and specify false


Remove Window Controls (min/max/close)

# In fullscreen mode, these buttons will magically appear..
# To get rid of them, we'll have to create a file in the firefox profile folder.
# Create a file in ~/.mozilla/firefox/<RANDOM_STRING>.default/chrome/userChrome.css
# Note that the folder probably need to be created as well^
# Use this setting

#window-controls { display:none!important; }


Preferred Addons

# Select Add-ons from the browser menu


# Safer Browsing

# HTTPS Everywhere; Use SSL/TLS when possible.
# Disconnect; Blocks a lot of the common tracking services
# AddBlock Ultimate; Disable adds
# uBlock; Another popular blocker


# Nice Tweaks

# Disable Ctrl-Q Shortcut; I've hit that key-combo once to many..



Netflix, Viaplay etc

# Install the User Agent Switcher addon
# To get the button (at current time at least) go to the menu > Customize,
# here the button is available.
# Add a new User Agent with this string

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2876.0 Safari/537.36



Tips and Tricks

# Some random Tips and Tricks


Clean the SQLite database

# Firefox might become slower over time due to bad database management
# You can defragment and trim the database with profile-cleaner
$ yaourt -S profile-cleaner


# Clean the database with
$ profile-cleaner f


Disable the Auto-Restore feature

# Just in case^
# Enter about:config search for browser.sessionstore.resume_from_crash;true and specify false



Troubleshoot

# This is a silly matter, that became of great annoyance to me.
# I wanted to run two instances of Firefox on startup -
# One for browsing and one for the devel workspace
# An error kept occurring thought, something like An instance of Firefox is already running yadada
# My workaround became creating a different Profile for the second Firefox instance..


# Create the profile by running
$ firefox --no-remote -p


# A windows will appear for profile management. Create a second profile.
# This is not a good workaround, cause you have to set up your Firefox once more for that profile..