Last active
December 7, 2025 18:17
-
-
Save robleh/583165b8e3da40ad0f04154aefa75cb2 to your computer and use it in GitHub Desktop.
uBlock Origin filter to remove YouTube homepage, endscreen and sidebar recommendations
This file contains hidden or 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
| ! Homepage | |
| www.youtube.com##.grid-disabled.grid.ytd-browse.style-scope > .ytd-two-column-browse-results-renderer.style-scope | |
| ! Sidebar recommendations | |
| www.youtube.com##ytd-watch-next-secondary-results-renderer.ytd-watch-flexy.style-scope | |
| ! End screen tiles | |
| www.youtube.com##.ytp-endscreen-content |
I've not yet tested extensively, but with exclusively these settings I seem to block videos on the homepage, sidebar recommendations and endscreen while leaving all other video.
Big thanks - exactly what i wanted!
! only Homepage
www.youtube.com##ytd-browse[page-subtype="home"]
Thank you @JamesSudlow!
Looks like the endscreen tiles recommendations filter stopped working. Any idea how to fix it?
@leorjorge
Yes, I did notice that issue but hadn't gotten round to fixing it
www.youtube.com##[class="ytp-fullscreen-grid"]
This seems to work, but I don't know for sure if it has any side effects
Thanks! After I wrote here I also got it working with www.youtube.com##.ytp-suggestion-set, didn't test extensively though
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
! only Homepage
www.youtube.com##ytd-browse[page-subtype="home"]
! Sidebar recommendations
www.youtube.com##ytd-watch-next-secondary-results-renderer.ytd-watch-flexy.style-scope
! End screen tiles
www.youtube.com##.ytp-endscreen-content
I've not yet tested extensively, but with exclusively these settings I seem to block videos on the homepage, sidebar recommendations and endscreen while leaving all other video.
EDIT:
due to a change in YouTube I think a different line is needed for the end screen
www.youtube.com##[class="ytp-fullscreen-grid"]