Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't get userContent.css to work in Firefox

Tags:

css

firefox

I'm using Firefox 48.0 on Ubuntu 14.

My profile directory is ~/.mozilla/firefox/v2fcrlqx.default

I've put a file in there called userContent.css with a simple test rule in it:

body { background-color: red; }

But I'm not getting any results.

I also tried creating a folder called Chrome beneath my profile directory and copying userContent.css into that, but that doesn't work either.

Has Firefox dropped support for user stylesheets or I am doing something wrong?

like image 403
Monkeybrain Avatar asked Nov 03 '16 10:11

Monkeybrain


People also ask

How do I enable CSS in Firefox?

css modifications are disabled in Firefox. You need to make sure that on the <code>about:config</code> page in Firefox, the <code>toolkit. legacyUserProfileCustomizations. stylesheets</code> preference is set to <code>true</code> and then restart the browser.

How do I use userChrome CSS in Firefox?

The userContent. css file. To use this file, just create a file named “userContent. css” in the same folder as your Chrome folder. Tweaks you place in this file affect Firefox's internal “content pages”, like the New Tab and Options pages.

How do I view CSS in Firefox inspect element?

Just do a right click on the element you want to see and select Inspect Element... Show activity on this post. Using firebug, right click and select inspect element. Using Web Developer toolbar, click on CSS, then click Edit CSS from the dropdown menu.


2 Answers

User styles are now disabled by default in Firefox.

To activate them:

  • Type about:config?filter=toolkit.legacyUserProfileCustomizations.stylesheets in the address bar. Set the option to true.

  • Restart Firefox.

hope it will help.

like image 64
AlainPre Avatar answered Sep 28 '22 11:09

AlainPre


I've fixed it. The user stylesheet has to go into a directory called chrome (not Chrome) below the profile directory.

like image 20
Monkeybrain Avatar answered Sep 28 '22 12:09

Monkeybrain