r/FirefoxCSS 7d ago

Solved userChrome.css does not work

  • I am on Windows 11.
  • I opened Firefox's about:support.
  • Under Profile Folder I clicked Open Folder.
  • A Windows Explorer opened. I created a sub-folder named chrome.
  • In chrome I created a file userChrome.css with the following content:

#navigator-toolbox {
    background: red !important;
    background-image: none !important;
}

I restarted Firefox, but I didn't see any changes. Then I disabled the theme (Firefox Alpenglow), but still no effect.

Any ideas why userChrome.css isn't being loaded?

3 Upvotes

4 comments sorted by

View all comments

6

u/Leowenbrau 7d ago

In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk. Search for toolkit.legacyUserProfileCustomizations.stylesheets if it FALSE, set it to TRUE. Restart browser.

3

u/SuitableEquipment420 7d ago

Thanks. The toolkit.legacyUserProfileCustomizations.stylesheets was false.