Wayto stop sites applying own style to scrollbars?[Linux.]

User Help for Mozilla Firefox
Post Reply
tattersford
Posts: 23
Joined: September 15th, 2013, 7:27 am

Wayto stop sites applying own style to scrollbars?[Linux.]

Post by tattersford »

Is there any way to prevent web sites, for example this one (which makes the scrollbar extremely narrow):

https://en.opensuse.org/Portal:Jump

from applying their own styling to scrollbars? (Without removing other functionality)...
Last edited by LIMPET235 on October 28th, 2020, 4:31 am, edited 1 time in total.
Reason: Added [Linux] to the title.
tattersford
Posts: 23
Joined: September 15th, 2013, 7:27 am

Re: Wayto stop sites applying own style to scrollbars?[Linux

Post by tattersford »

Partly answering my own question...

Found this extension:
https://addons.mozilla.org/en-GB/firefo ... scrollbars

which has the ability to prevent web sites from overriding the default scrollbar style.

Would have preferred to achieve that without using an extension if at all possible.
User avatar
dickvl
Posts: 54161
Joined: July 18th, 2005, 3:25 am

Re: Wayto stop sites applying own style to scrollbars?[Linux

Post by dickvl »

You can possibly add this code to userContent.css to disable the feature to style scroll bars..

Code: Select all

*{scrollbar-color:auto!important; scrollbar-width:auto!important;}
bug 1641324 - Remove the layout.css.scrollbar-width.enabled and layout.css.scrollbar-color.enabled prefs. [79]
tattersford
Posts: 23
Joined: September 15th, 2013, 7:27 am

Re: Wayto stop sites applying own style to scrollbars?[Linux

Post by tattersford »

That does appear to have the desired effect.

Appreciated, many thanks.
Post Reply