Page 1 of 1
Firefox scrollbar color
Posted: Fri Dec 19, 2025 8:30 pm
by mlangdn
When I did a fresh install of slackware several months back, I lost the orange scrollbar. I looked everywhere for how to change it. I wrote it down, but can't seem to find it. Was wondering G if you could show me that one again. It seemed simple at the time, but I can't find it anywhere.
Re: Firefox scrollbar color
Posted: Fri Dec 19, 2025 10:57 pm
by Grogan
Sure thing. First of all, you have to enable .css overrides in about:config
Set this to true:
Code: Select all
toolkit.legacyUserProfileCustomizations.stylesheets
Now, create the following file (create the chrome directory if it's not present in your user profile dir)
~/.mozilla/firefox/xxsomeshit.default/chrome/userContent.css
Put this in it:
Code: Select all
:root{
scrollbar-color: #BA0B00 #000000;
scrollbar-width: auto;
}
For scrollbar width, in about:config
Code: Select all
widget.gtk.overlay-scrollbars.enabled = false
widget.non-native-theme.scrollbar.size.override = some number
(I use width 22 for my scrollbar size override)
That should take care of the fugly stupid scrollbars
Re: Firefox scrollbar color
Posted: Fri Dec 19, 2025 11:02 pm
by Grogan
I vaguely remember that about:config setting toolkit.legacyUserProfileCustomizations.stylesheets being gone from the list. If it is, manually paste this line, exactly like this, to your prefs.js file (in your user profile dir). I know for a fact that directive still works (I'm using it) but I remember adding it manually at one time.
Code: Select all
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
I would say edit prefs.js with Firefox closed. When you open it again I think it may reorder the directives in that file.
Re: Firefox scrollbar color
Posted: Sat Dec 20, 2025 6:37 am
by Zema Bus
After doing this years ago I've kept my Firefox profile backed up on my NAS and just drop it back in anytime I have a new Firefox installation and I instantly have my red scrollbars back. More often then not Firefox will initially create a new profile on first run, when it does I exit Firefox and and rename the profile I want to use to the name of the newly created profile and voilĂ !
Re: Firefox scrollbar color
Posted: Sat Dec 20, 2025 1:11 pm
by mlangdn
Thanks guys!
Re: Firefox scrollbar color
Posted: Sun Dec 21, 2025 7:55 am
by Grogan
I've had the same Firefox profile for many years, copied between systems. I'd hate to lose my profile, with my style, configuration (including about:config stuff to disable their stupid shit), my Ublock Origin and customizations etc. etc.
If I somehow stuff mine up, I can always copy it from crux, or arch on the old machine, or even from my Raspberry Pi. I also probably have a grogan.mozilla tarball (should make a fresh one!) somewhere.
Re: Firefox scrollbar color
Posted: Mon Dec 22, 2025 8:09 pm
by Grogan
By the way, I anticipate this being problematic after Firefox 147. They are moving ~/.mozilla to ~/.config/mozilla because whiners think everything should be "standardized" (the same kind of people who think all distros should be the same like Windows, so binary software is easier).
I would expect that ~/.mozilla will be grandfathered for existing profiles (they'd be summarily shot if it isn't) but what's going to happen if it thinks it's a different build channel and generates new default config? It won't simply be a matter of reconnecting the profile then, because it's a different location. I would highly doubt that it's location agnostic, there's bound to be something in there with paths. Perhaps there's a way to change the location in about:config or something.
P.S. Actually it looks like we can just change Path= in profiles.ini. It's just a relative path (profile directory name), but it looks like it will take a full path. e.g.
[Profile0]
Name=default
IsRelative=0
Path=/home/grogan/.mozilla/firefox/30temyds.default
Default=0
Re: Firefox scrollbar color
Posted: Mon Dec 22, 2025 9:56 pm
by mlangdn
Mine says IsRelative=1. Should I change that also?
Re: Firefox scrollbar color
Posted: Mon Dec 22, 2025 10:14 pm
by Grogan
You don't need to change any of it until Firefox 147 (or not at all unless you do something to invalidate your profile), but yes, that will have to be 0 if using an absolute path. That's why I marked it up in red.
P.S. I'm assuming it works logically like that.