Skip to content

Instantly share code, notes, and snippets.

@czottmann
Last active September 3, 2022 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save czottmann/1680e6ed782029c0384222a923de0408 to your computer and use it in GitHub Desktop.
Save czottmann/1680e6ed782029c0384222a923de0408 to your computer and use it in GitHub Desktop.
Example uBlock Origin filters for hiding reaction videos on youtube.com
# YT grid view
www.youtube.com##ytd-rich-item-renderer:has(yt-formatted-string[aria-label*=" REACTION "])
www.youtube.com##ytd-rich-item-renderer:has(yt-formatted-string[aria-label*=" Reaction "])
www.youtube.com##ytd-rich-item-renderer:has(yt-formatted-string[aria-label*=" REACTS "])
www.youtube.com##ytd-rich-item-renderer:has(yt-formatted-string[aria-label*=" Reacts "])
# YT list/results view
www.youtube.com##ytd-video-renderer:has(yt-formatted-string[aria-label*=" REACTION "])
www.youtube.com##ytd-video-renderer:has(yt-formatted-string[aria-label*=" Reaction "])
www.youtube.com##ytd-video-renderer:has(yt-formatted-string[aria-label*=" REACTS "])
www.youtube.com##ytd-video-renderer:has(yt-formatted-string[aria-label*=" Reacts "])
@czottmann
Copy link
Author

czottmann commented Sep 3, 2022

Open your uBlock Origin config, go to "My filters", paste the block above to the end of your filter list, and save. Adjust the spelling and/or words to your liking.

It should look something like this once you're done:

CleanShot 2022-09-03 at 20 29 52@2x

I take no responsibility for your actions here, mind. :) Enjoy your somewhat less sensational YT grid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment