[lug] Firefox Scroll bar width

Jed S. Baer blug at jbaer.cotse.net
Sat Jun 19 22:08:59 MDT 2021


On Sun, 20 Jun 2021 04:53:34 +0200 (CEST)
mad.scientist.at.large at tutanota.com wrote:

> How do I keep sites from making the scroll bar extra skinny and hard to
> use in firefox.  Frankly, it's annoying as hell that web designers think
> they need to mess with how my browser works!

Abandon all hope, ye who try to customize Firefox.

As I understand it, one would need to put some CSS code into
userChrome.css, and I'm not entirely certain that'd work. I've pondered
this myself, though not to the point of digging into it. An issue to be
aware of is whether the scrollbars are part of the application (Firefox) or
the web page itself. It's possible, in HTML, I think, to do something like
specify a DIV that uses the whole window area, and then there's the
webkit-scrollbar stuff:
https://www.w3schools.com/howto/howto_css_custom_scrollbar.asp

So, that raises the question of whether you'd need to make your preferences
in userChrome.css, or userContent.css. Oh, and as of a few versions ago,
you have to explicitly enable loading of userContent.css in Firefox, which
you do in the about:config area. I'm not sure about userChrome.css.

I did try going into the about:config area and setting a preference there
for the scrollbar width, but it had no effect.

When specifying things in userC....css, I've found that the !important
modifier is essential for having your stuff get used.

-- 
All operating systems suck, but Linux just sucks less
 - Linus Torvalds


More information about the LUG mailing list