Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.world
FirefoxCSS·Firefox CustomsbyHotsauceHurricane

librewolf not loading css file

i have used this same file before and same browser but its not loading. i checked settings in librewolf to make sure i had css enabled. but it still wont load.
i have file located at ~/.config/librewolf/librewolf/12345. default-default/chrome/userchrome.css

View original on lemmy.world
2

8 replies

fedia.io

Using a capital 'C' in 'userChrome.css' and userContent.css file names is a longstanding convention... but not a requirement.

1

Are you on Windows? On Windows, filename capitalization in general does not matter.
But OP seems to be on Linux. I just tried it on Linux with the filename as "userchrome.css" and it was not loaded.

I would've been very surprised, if it did work on Linux, macOS etc., because to my knowledge, as a software engineer, there is no way to implement that without a second filesystem access, which would've delayed startup.
Nowadays, you even have to set a about:config flag, specifically because they don't even want the first filesystem access to try to load the file...

1
tremreply
lemmy.blahaj.zone

Hmm, not a lot to go off of then.

Can you just go through these steps to see if anything isn't set up correctly?
https://www.userchrome.org/how-create-userchrome-css.html

You can also check via the Browser Toolbox, whether the file gets loaded.
In the "Style Editor" tab, you can filter the list on the left and if "userChrome.css" isn't listed there, then it didn't get loaded.

If it is listed in the Style Editor, then something about your rules is broken. You might be missing !important in places.
Or your CSS rules might not target the right classes/ids/variables anymore. For example, I had a breakage about a month ago, because they renamed the CSS variable --toolbarbutton-inner-padding to --toolbarbutton-padding-inner.

2
kalkulatreply
lemmy.world

Not using LW, but in FF there's an about.config. item called 'toolkit.legacyUserProfileCustomizations.stylesheets' that has to manually turned to 'true' to work.

I don't like the FF setup (userChrome levels buried deep in the .mozilla folder), must be nice to have it handier like that.

1

You reached the end