Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

userChrome.css does not seem to be getting applied.

more options

I was following this reddit thread on how to remove the "your camera and microphone are being shared" popup, but it's having no affect.

I have set `toolkit.legacyUserProfileCustomizations.stylesheets` to true.

Here's the full contents of the userChrome.css file: ```

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#webrtcIndicator {
  display: none;
}

```

Modified by cor-el

Chosen solution

You did create the file in the correct location ?

  • ~/.mozilla/firefox/<profile>/chrome/userChrome.css;

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

Read this answer in context 👍 0

All Replies (8)

more options

Did you also verify that the file doesn't have a hidden .txt file extension (userChrome.css.txt) ?

You can try to add the !important flag.

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#webrtcIndicator {
  display: none !important;
}

Helpful?

more options

ls -l doesn't show any hidden extensions.

Added important flag, restarted Firefox, still not working.

Helpful?

more options

Does other CSS code in the file work ?

Is this with Firefox from the Mozilla server or Firefox from the software repositories ?

Helpful?

more options

It doesn't seem to. I tried adding a red border to the popup, but it didn't appear.

I'm not sure where to check, but I'm using Debian and apt says Firefox is not installed so probably the Mozilla version.

Helpful?

more options

Does something like this work ?

.urlbar-input-box {font-size:14pt!important; font-family:"DejaVu Sans Mono"}

Helpful?

more options

No, it doesn't. Tried with a few fonts and sizes.

Helpful?

more options

Chosen Solution

You did create the file in the correct location ?

  • ~/.mozilla/firefox/<profile>/chrome/userChrome.css;

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

Helpful?

more options

Well this was a pretty silly issue then. I had it in .mozilla/chrome.

Thanks for the help!

Helpful?

Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.