Last active
February 9, 2023 14:41
-
-
Save thomp/e85ffb7329b1ccf409c6f4ee8d405384 to your computer and use it in GitHub Desktop.
youtube styling - block suggestions, previews, etc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
the main page | |
*/ | |
ytd-browse.style-scope {display: none;} | |
ytd-browse.ytd-page-manager {display: none;} | |
/* | |
single video page | |
*/ | |
/* watch next preview */ | |
#items.ytd-watch-next-secondary-results-renderer { | |
display: none; | |
} | |
/* previews/suggestions */ | |
ytd-compact-video-renderer:not([watch-feed-big-thumbs]) ytd-thumbnail.ytd-compact-video-renderer { | |
display: none; | |
} | |
/* comments */ | |
.ytd-comments { | |
display: none; | |
} | |
/* | |
shorts page | |
*/ | |
ytd-shorts { | |
display: none | |
} | |
/* | |
Limit browsing and search within the youtube UI | |
- The div with id 'contents' is only on the main youtube page; | |
blocking it is not problematic on the single-video page | |
*/ | |
div#contents { | |
display: none | |
} | |
/* | |
from Elxio's "Spam-free YouTube" | |
*/ | |
ytd-watch-flexy { | |
max-width: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment