I'm trying to change the background color of my Firefox URL bar using userChrome.css. Following these steps, I added the code below to my userChrome.css (inside <profile>/chrome):
@-moz-document url(chrome://browser/content/browser.xul),
url(chrome://browser/content/browser.xhtml) {
#urlbar {
background-color: red !important;
}
}
It didn't work at all. How could I get to do it?
First, you need to set
toolkit.legacyUserProfileCustomizations.stylesheetspreference totrueinabout:config, as described here.Now, the right CSS identifier to be used is
#urlbar-background:(I learned that from this file; the whole repository is quite instructive.)