/firefox-scripts

userChromeJS / autoconfig.js and extensions

Primary LanguageJavaScriptMozilla Public License 2.0MPL-2.0

userChromeJS

Tested on Firefox Developer Edition 69.0b16, Windows 10

Instructions

  1. Save config.js to Firefox installation folder (usually C:\Program Files (x86)\Mozilla Firefox), next to firefox.exe.

  2. Save config-prefs.js into \defaults\pref inside Firefox installation folder (usually C:\Program Files (x86)\Mozilla Firefox\defaults\pref), next to channel-prefs.js.

  3. Click Firefox menu button (☰) -> Help -> Troubleshooting information (or simply open the address "about:support"), then click Open folder. This is the folder of your Firefox profile. In there, create a new folder called chrome.

  4. Inside chrome, create another new folder called utils, then save all these files into it.

  5. Save the desired userChromeJS scripts into chrome. Read below the description of each one.

  6. If you want a button to manage your userChromeJS scripts, save rebuild_userChrome.uc.js into chrome.

  7. Restart Firefox.

userChromeJS scripts

(click on each to expand)

Adjust URLBar Popup Position and Width In Fx 48, URLBar Popup was stretched to fill the entire width of the browser. This script restores the previous behavior, with the popup inheriting the width and position of URLBar.

Note: there are similar userChrome.css alternatives, but the URLBar width can change depending on the buttons around and depending on the size of the window. You can't set dynamic width with pure CSS, so JS is needed.

Download link.

Firefox default:

With this script:

Master Password+ Locks Firefox with password. It will prompt the password on browser startup or anytime when you lock it with Ctrl+Alt+Shift+W.

You need to set a master password in Firefox Options > Privacy & Security > [×] Use a master password.

Download link.

Locked:

Unlocked:

Screenshots

userChromeJS Manager (the blue ones are restartless)

Status Bar, Extension Options Menu, MinMaxClose Button, newDownloadPlus.uc.js and legacy extensions: