Skip to content

Instantly share code, notes, and snippets.

@mimukit
Created December 6, 2022 18:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mimukit/478a93ca4fa611b452f1628d0eb89a32 to your computer and use it in GitHub Desktop.
Save mimukit/478a93ca4fa611b452f1628d0eb89a32 to your computer and use it in GitHub Desktop.
Disable youtube shots on browser using ublock origin

How to block youtube shorts using ublock origin

  • Add the following script to your ad blocker. I used Ublock Origin (Dashboard > My Filters). It may work with other add-ons.
www.youtube.com##:xpath(//ytd-grid-video-renderer[descendant::a[contains(@href,"shorts")] and not(contains(@class,"shelf"))])
  • Click on Apply changes.

Additional filters:

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