Firefox scrollbar color
Forum rules
Behave
Behave
- mlangdn
- Master of Ceremonies
- Posts: 110
- Joined: Thu Apr 07, 2022 11:28 pm
- Location: Western Kentucky
Firefox scrollbar color
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.
- Grogan
- Your Host
- Posts: 3211
- Joined: Sat Aug 21, 2021 10:04 am
- Location: Ontario, Canada
Re: Firefox scrollbar color
Sure thing. First of all, you have to enable .css overrides in about:config
Set this to true:
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:
For scrollbar width, in about:config
(I use width 22 for my scrollbar size override)
That should take care of the fugly stupid scrollbars
Set this to true:
Code: Select all
toolkit.legacyUserProfileCustomizations.stylesheets~/.mozilla/firefox/xxsomeshit.default/chrome/userContent.css
Put this in it:
Code: Select all
:root{
scrollbar-color: #BA0B00 #000000;
scrollbar-width: auto;
}
Code: Select all
widget.gtk.overlay-scrollbars.enabled = false
widget.non-native-theme.scrollbar.size.override = some numberThat should take care of the fugly stupid scrollbars
- Grogan
- Your Host
- Posts: 3211
- Joined: Sat Aug 21, 2021 10:04 am
- Location: Ontario, Canada
Re: Firefox scrollbar color
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.
I would say edit prefs.js with Firefox closed. When you open it again I think it may reorder the directives in that file.
Code: Select all
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);- Zema Bus
- Your Co-Host
- Posts: 1955
- Joined: Sun Feb 04, 2024 1:25 am
- Location: Arizona
Re: Firefox scrollbar color
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à!
- mlangdn
- Master of Ceremonies
- Posts: 110
- Joined: Thu Apr 07, 2022 11:28 pm
- Location: Western Kentucky
Re: Firefox scrollbar color
Thanks guys!
- Grogan
- Your Host
- Posts: 3211
- Joined: Sat Aug 21, 2021 10:04 am
- Location: Ontario, Canada
Re: Firefox scrollbar color
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.
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.
- Grogan
- Your Host
- Posts: 3211
- Joined: Sat Aug 21, 2021 10:04 am
- Location: Ontario, Canada
Re: Firefox scrollbar color
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.
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
- mlangdn
- Master of Ceremonies
- Posts: 110
- Joined: Thu Apr 07, 2022 11:28 pm
- Location: Western Kentucky
Re: Firefox scrollbar color
Mine says IsRelative=1. Should I change that also?
- Grogan
- Your Host
- Posts: 3211
- Joined: Sat Aug 21, 2021 10:04 am
- Location: Ontario, Canada
Re: Firefox scrollbar color
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.
P.S. I'm assuming it works logically like that.