You are here

userContent.css

11 posts / 0 new
Last post
hhmacedo
Offline
Last seen: 7 years 7 months ago
Joined: 2016-10-23 18:03
userContent.css

Hi!

I tried to create a chrome folder inside the Profile Folder and put my userContent.css there, but the file didn't work. I ejected the USB and stick it again, nothing. Do I have to put it in another folder or it won't work at all?

Regards!

MiK
Offline
Last seen: 3 months 1 week ago
Joined: 2008-08-14 18:25
Should work

If your directory includes the following sub-folders:

...\Data\profile\chrome\userContent.css

then, you've placed your "userContent.css" file in the right place.

File not working. Did it work before, in another installation, maybe, or this is your first attempt?

If it is something wrong with the css coding, Firefox would provide a clue about it through the "Browser Console", so, check it out.

hhmacedo
Offline
Last seen: 7 years 7 months ago
Joined: 2016-10-23 18:03
So maybe it's a bug

✔️ File in the right place;
✔️ The file works with the Firefox installed on my notebook;
✔️ Code is ok (at least works on the installed version);

Additional information:
I tried with both User and Developer Firefox edition, using and not using Private Mode. Failed at all.

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 6 months 1 week ago
DeveloperModerator
Joined: 2008-07-24 18:46
Not working how?

When you say it's not working, can you clarify what you mean by that?

hhmacedo
Offline
Last seen: 7 years 7 months ago
Joined: 2016-10-23 18:03
My code

Example:
@-moz-document domain(www.rememberthemilk.com) {
.b-rl {
background-color:#ffffff !important;
}
.b-Sl {
background-color:#ffffff !important;
}
.b-zr-Ar {
background-color:#ffffff !important;
}
}

This code was suposed to change the background color, but it isn't.

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 6 months 1 week ago
DeveloperModerator
Joined: 2008-07-24 18:46
Firefox not running

To confirm, are you making these changes when Firefox is not running?

hhmacedo
Offline
Last seen: 7 years 7 months ago
Joined: 2016-10-23 18:03
Yes

But that would make a difference? Even if was with FF open, when I close and open again, it was supose to work.

John T. Haller
John T. Haller's picture
Online
Last seen: 52 min 52 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Firefox Itself

All we're doing is running Firefox with the -profile switch pointing to Data\profile as the profile directory. If you're creating a chrome directory there and using the exact same css file from your local profile which works, it's a bug in Firefox somewhere. We don't modify Firefox at all. We just handle some adjustments before and after running it.

Sometimes, the impossible can become possible, if you're awesome!

MiK
Offline
Last seen: 3 months 1 week ago
Joined: 2008-08-14 18:25
Yes, it's a bug!

@ hhmacedo

It's a known bug, introduced with e10s Multi-process Firefox, a.k.a. Electrolysis, which, if enabled, renders userChrome.css and userContent.css files useless.

I just wasn't aware about this, as for my daily browsing I use an older version of Firefox.

If you wish to disable the Multi-process, you can do it in about:config by toggling the "browser.tabs.remote.autostart.2" user set preference from true to false. There's also a "browser.tabs.remote.autostart" preference which is set to false as default. That's the status I found in version 49.0.1, and the newest 49.0.2 of the Firefox - Update Channel: release.

hhmacedo
Offline
Last seen: 7 years 7 months ago
Joined: 2016-10-23 18:03
Not it works! Thank you.

Not it works! Thank you. Smile

MiK
Offline
Last seen: 3 months 1 week ago
Joined: 2008-08-14 18:25
Glad to help

I gather you've meant to type "Now" instead of "Not", so, I'm glad to hear that this has worked for you. Smile

Problem solved, however, I must make a correction regarding my previous post, where I stated that the "userChrome.css" file was affected by the bug as well. If that had ever been a case in the past, it does not apply now, to the current Firefox Release version 49.0.2, according to my tests done after posting the above. In my post, I was just repeating what I had read in the following article:

"userChrome.css and userContent.css Codes No Longer Working in Mozilla Firefox"
https://websetnet.com/userchromecss-usercontentcss-codes-longer-working-...

In my tests, while the bug rendered 99.9% of the rules in my "userContent.css" ineffective, the "userChrome.css" rules were working just fine, by what I could see.

Log in or register to post comments