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; } |
Answered by
ACTCD
Nov 15, 2024
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 |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So the final script should be:
NOTE that you should use
@exclude-matchinstead of@exclude.