Skip to content

Instantly share code, notes, and snippets.

@robleh
Last active December 7, 2025 18:17
Show Gist options
  • Select an option

  • Save robleh/583165b8e3da40ad0f04154aefa75cb2 to your computer and use it in GitHub Desktop.

Select an option

Save robleh/583165b8e3da40ad0f04154aefa75cb2 to your computer and use it in GitHub Desktop.
uBlock Origin filter to remove YouTube homepage, endscreen and sidebar recommendations
! 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
@wyattwheeler
Copy link

This worked - thank you!

@RaywenOK
Copy link

Hi! Homepage filter also blocks subscribtions page for me - and i'm only looking to block the homepage. Is there a possible workaround?

@JamesSudlow
Copy link

JamesSudlow commented Dec 27, 2024

Hi! Homepage filter also blocks subscribtions page for me - and i'm only looking to block the homepage. Is there a possible workaround?

! 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"]

@RaywenOK
Copy link

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!

@LarsArtmann
Copy link

@leorjorge
Copy link

Looks like the endscreen tiles recommendations filter stopped working. Any idea how to fix it?

@JamesSudlow
Copy link

@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

@leorjorge
Copy link

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