→ For Linux and macOS paths, read this and this.
-
Download this zip file and extract its content to Firefox installation folder (usually C:\Program Files\Mozilla Firefox).
-
Click Firefox menu button (☰) -> Help -> Troubleshooting information or simply open about:support, then click "Open folder". This is the folder of your Firefox profile. In there, create a new folder called chrome.
-
Download one of the files below and extract its content in chrome folder.
Now, if you're only interested in extensions, you can skip to step 6.
-
Save the desired userChromeJS scripts into chrome. Read below the description of some of them.
-
If you want a button to manage your scripts, including the ability to disable/enable scripts without needing to restart Firefox¹, save rebuild_userChrome.uc.js into chrome.
-
Open about:support and click "Clear startup cache…" to force Firefox to load userChromeJS on the next startup.
-
Restart Firefox.
¹: Not all scripts are restartless. These have @shutdown
at the beginning of the code. Almost all scripts on this page were written by me to be restartless, but almost all scripts you get from other sources are not.
(click to expand)
BeQuiet
The main purpose of this script is to control media without having to select the tab playing it. So I can play/pause a YouTube video or skip to the next song in Deezer while browsing Reddit, for example. Three hotkeys are defined by this script: Ctrl+Alt+S to play/pause, Ctrl+Alt+D to next song and Ctrl+Alt+A to previous song.Besides that, no more than one tab should play audio at the same time. Each tab paused by another tab that starts playing is added to a stack. So if I open a new YouTube video while there's already one playing, the new tab starts playing and the other is paused. When the video ends or when I pause it, the first YouTube tab resumes playing.
As for now, I only added support for a few sites, like Deezer, Spotify and YouTube. I chose not to support next/previous in YouTube, only play/pause.
Enter Selects
Preselects the first suggestion from address bar. For instance, if this page is the first suggestion when you type "xiaoxiaoflood", you don't need to press down arrow key before Enter. This is a workaround for the bad Firefox design choice of autofill domains only.With practice, the page you want to go to will always become the first one, so accessing any frequent page will be as easy as typing just 'gm' + Enter to load Gmail.
This script replaces urlbar autocomplete, so browser.urlbar.autoFill
is disabled on install. If at any time you miss domain autofill, you still sort of can achieve that by pressing Tab IF the domain of first suggestion matches what you've typed so far. Example: you typed git and the first suggestion if from github.com. Pressing Tab key will autocomplete the domain even if the first suggestion is not just github.com - it may be github.com/whatever. But if the typed input doesn't match the domain of the first suggestion, then Tab key will have default behavior, i.e. will select next suggestion just like down arrow key.
Extension Options Menu
A single toolbar button to manage all your extensions. It opens a menu listing each extension. Left-click to open Options from the hovered addon, right-click to enable/disable, Ctrl + right-click to uninstall. Hover anywhere on the menu to see more.Screenshot:
Master Password+
Locks Firefox with password. This 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.
MinMaxClose Button
Toolbar button to replace window buttons (minimize, maximize and close). I'm a Windows user and use Tree Style Tab with hidden titlebar, so I need this.-
Left-click to minimize (so I can't close it accidentally).
-
Right-click to close.
-
Middleclick restores to fixed position/size (edit script code with your preferred values). If you want to restore to previous position/size, use Shift + Middleclick.
multifoxContainer
When Firefox introduced containers, I created this script to get some features that I missed from Multifox, the legacy addon that implemented "containers" years before Firefox having this feature by default. Since then, Firefox has added some things this script had, so I removed them. But I still use it for two things:-
New tabs (Ctrl+T or New Tab button) inherits the container of current tab (except for Private Tabs).
-
The label in urlbar serves as menubutton to reopen current tab in other container. With left click, current tab is replaced. With middleclick, a new tab is opened without closing the other one.
Open in Unloaded Tab
Creates an item in contextmenu to open links/bookmarks/history in unloaded tabs, i.e., the tab is created, but it will only load when selected. Just like unloaded tabs when you restore previous session. So you can, for example, open multiple related YouTube videos and load them one by one. Or open an entire bookmark folder in tabs without freezing the browser, since tab content will load on demand.PrivateTab
Fx 77 blocked the ability to open private tabs in non-private windows, previously possible with Private Tab addon. So I decided to write this script as a replacement. You can change some minor settings at the beginning of the code.Redirector
Requires basic JS skills to write rules using regex.The main difference between this and extensions like Redirector it that these Firefox extensions record both pre-redirect and final URLs in history. I want it to record just the final URL.
This script can also do more complex things like running a JS function with regex results.
Finally, the main reason why I wrote this was to integrate it with Link Status Redux. When I point the mouse to a link that I've already visited, LSR displays the time of last visit. This is extremely useful for me to know if I have already visited the page and to track changes since last visit.
LSR uses Redirector rules to replace links directly in page (Redirector extension doesn't do this, it redirects only when you try to load the URL). And many URLs have gibberish at the end, so I have rules to remove them, then the URL remains clean and LST can track last visit correctly (because the gibberish is different every time, generating different URLs).
Note: the list of rules in the script is just an example, mine is much bigger.
Status Bar
Brings back the good old status bar (also known as Addon Bar) at the bottom, with status text plus any buttons you want.Screenshots:
StyloaiX
UserStyle manager to reskin Firefox window and websites. Replacement for legacy Stylish. More convenient than userChrome.css and userContent.css, as it has a powerful editor with instant preview, error checking, code autocomplete and you can enable/disable individual styles without restarting Firefox.Screenshots (yes, I'm using the old Stylish icon):
Auto Plain Text Links
Firefox's default context menu will allow you to open plain text links if you select them first. This small addon automatically detects simple http and ftp plain text links when you right-click without needing you to select them first, then passes that URL on to the default Firefox menu items for opening them.Context to Search
With this script, when you choose Search from the context menu (with text selected), instead of immediately searching it will just put the selected text in the search bar so you can edit it and choose the search engine before searching.Bonus: I don't like the new password manager and the old one was removed in Fx 77. I'm still using it. If you want it too, save these files, so that you can access the old password manager using chrome://userchromejs/content/passwordmgr/passwordManager.xhtml (bookmark this URL).