AuthorSteve ArchivesCategories |
Back to Blog
Firefox Quantum11/22/2021
InstallationPlace the three userChrome.* files in a /chrome directory inside your Firefox profile. This is a workaround which allows you to run arbitrary javascript in your browser context, as used to be enabled by the extension userChromeJS.It does not involve adding any extensions, and instead works only by adding (or changing) files in your Firefox user profile.After I made this I learned of something called autoconfig.js which apparently serves a similar purpose I haven't investigated it very much. Firefox Quantum compatible userChrome.js What does this do?Extensions that allow you to run arbitrary javascript in your browser context don't work anymore with Firefox 57 and later. It was a good run while it lasted!See the Bugzilla tracking page Disable MOZ_XBL in Firefox.Then I came upon this method, realized this trick was far more general than just altering fullscreen mode, and factored it out so that the javascript part was easily modifiable by anyone. But that's painful and might not survive updates. It's possible with unpacking, altering, and repacking files in the Firefox.app package. Why did I make it?I wanted to enable pre-Lion osx fullscreen mode, and couldn't find an easy way to do it in Firefox Quantum. If you have other content in the userChrome.css file you can remove just the part that you added during installation. The existing contents of that script (in this repo) are a small change to the fullscreen behavior of Firefox under macOS: it restores the pre-Lion behavior (and hides the toolbar and tabs when in fullscreen mode).To uninstall, remove the three files.
0 Comments
Read More
Leave a Reply. |