Giter Site home page Giter Site logo

denis-g / firefox-user.js Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 1.0 486 KB

๐ŸฆŠ Firefox user.js โ€“ based on arkenfox/user.js with additional UI fixes.

Shell 4.26% JavaScript 38.88% Batchfile 4.80% CSS 52.05%
firefox settings security privacy ghacks mozilla-firefox userjs mozilla firefox-css firefoxcss userchrome userchromecss

firefox-user.js's Introduction

Firefox user.js

Last tested Firefox Updated Date
Firefox Preview


๐Ÿ”น user.js

The Firefox user.js file stores user settings. This a convenient way to save your browser customizations and apply them on different machines. All settings are based on arkenfox/user.js by default and override settings for sites to normal work.

user-overrides.js

  • Disabled Firefox Accounts & Sync, built-in extensions
  • Basically settings for security and usable in daily use
  • Allow cross-logins, basic cookie policy
  • Enabled saving session, keep logins and site data
  • Disabled unused Web APIs and preset for permissions
  • UI/UX settings
  • Locale settings
  • New Tab page, tabs, findbar, bookmarks configuration

๐Ÿ”น chrome

Firefox supports advanced customization of its UI with user-defined CSS. A userChrome.css file affects the browser's UI, and userContent.css file affects the browser's content, which is all Firefox-specific pages (about:).

chrome/userChrome.css

  • Added icon for sound-playing tab (animated)
  • Auto-hide bookmarks toolbar
  • Floating findbar on top
  • Hide "All Tabs" button
  • Hide search engines from the search/url bar
  • Iconized main menu
  • Reduce space for tabs
  • Show tab close button on hover

chrome/userContent.css

  • Theme-based styles for Newtab page
  • Multi-column for Addons page

๐Ÿ”น Apply Configuration

Better choice - apply script with an empty profile. The script generates a new user.js configuration file with custom settings and overrides the user.js file and chrome directory (if they were) into Firefox profile. The file is loaded each time Firefox starts.

You can also change the values or add new ones on configuration files into the user.js-overrides directory or added your configuration js-file. Merging files in alphabetical order by default.

๐Ÿ›‘ Backup your profile and close Firefox before running the script!

macOS, Linux

1. Clone repo:

git clone [email protected]:denis-g/firefox-settings.git
cd firefox-settings

2. Set your Firefox profile path on FIREFOX_PROFILE variable inside config.ini file.

Example config:

Go to about:profiles page and copy Root Directory path.

# macOS
# FIREFOX_PROFILE="/Users/denis-g/Library/Application Support/Firefox/Profiles/XXXXXXXX.profile_name"

# Linux
# FIREFOX_PROFILE="/home/denis-g/.mozilla/firefox/XXXXXXXX.profile_name"

FIREFOX_PROFILE="/Users/denis-g/Library/Application Support/Firefox/Profiles/dfk39fj39.default-nightly"

3. ...and run main script:

sh setup.sh

Windows

1. Use Git as above, download zip-archive, or execute commands on PowerShell:

# download this repo
Invoke-WebRequest "https://github.com/denis-g/firefox-user.js/archive/refs/heads/master.zip" -OutFile "$HOME\Downloads\firefox-settings.zip"
Expand-Archive "$HOME\Downloads\firefox-settings.zip" -DestinationPath "$HOME\Downloads\" -Force
# open directory
explorer "$HOME\Downloads\firefox-settings-master"

This will upload repo into your Downloads\firefox-settings-master directory.

2. Set your Firefox profile path on FIREFOX_PROFILE variable inside config.ini file.

Example config:

Go to about:profiles page and copy Root Directory path.

# Windows
# FIREFOX_PROFILE="C:\Users\denis-g\AppData\Roaming\Mozilla\Firefox\Profiles\XXXXXXXX.profile_name"

FIREFOX_PROFILE="C:\Users\denis-g\AppData\Roaming\Mozilla\Firefox\Profiles\dfk39fj39.default-nightly"

3. ...and run main script setup.bat.


๐Ÿ”น Update

  • Close Firefox
  • Execute setup.sh or setup.bat script, like as above
  • Run Firefox
  • On about:config page execute the cleanup script

๐Ÿ”น Potential Problems

  • By default push and web notifications is disabled - site can't send desktop notifications for Firefox.

๐Ÿ”น Must-have Addons


๐Ÿ”น References

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.