MozillaZine


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

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

Post Posted October 28th, 2020, 4:04 am

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: 16
Joined: September 15th, 2013, 7:27 am

Post Posted October 28th, 2020, 5:28 am

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.

dickvl

User avatar
 
Posts: 53243
Joined: July 18th, 2005, 3:25 am

Post Posted October 28th, 2020, 9:16 am

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: 16
Joined: September 15th, 2013, 7:27 am

Post Posted October 28th, 2020, 10:10 am

That does appear to have the desired effect.

Appreciated, many thanks.

Return to Firefox Support


Who is online

Users browsing this forum: Bing [Bot] and 7 guests