CSS Script only works when page is reloaded #753
-
I have a CSS script for hiding scrollbars only on YouTube's website, but it never works when the page first loads or when I click on different videos. Only when I refresh the page. Can anyone suggest what I should do to get this to work reliably the first time it loads and for any video I click on without having to reload every time? Here's the very simple script: /* ==UserStyle==
@name Hide YT Scrollbar
@description Hides the scrollbar on YouTube
@match *://*.youtube.com/*
@exclude *://music.youtube.com/*
@exclude *://*.music.youtube.com/*
==/UserStyle== */
body::-webkit-scrollbar { width: 0px; !important; } |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
There's a syntax error there, an extra semicolon. body::-webkit-scrollbar { width: 0px !important; } Also due to #711, it is recommended to use |
Beta Was this translation helpful? Give feedback.
So the final script should be:
NOTE that you should use
@exclude-match
instead of@exclude
.