Skip to content

Instantly share code, notes, and snippets.

@SabreCat
Last active March 22, 2023 15:01
Show Gist options
  • Save SabreCat/792fc924e6dd0b6f0e7a7f1be8da5c4a to your computer and use it in GitHub Desktop.
Save SabreCat/792fc924e6dd0b6f0e7a7f1be8da5c4a to your computer and use it in GitHub Desktop.
Block useless Twitter crap in uBlock Origin
twitter.com##article:has(a:has-text(/liked|replied|follow/i))
twitter.com##article:has(a:has-text(/liked|replied|follow/i)):xpath(../..) + div
twitter.com##article:has(a:has-text(/liked|replied|follow/i)):xpath(../..) + div + div
twitter.com##div > div > div > div > div > div > div > div > div > div:has-text(/You might like|Trends for you|Who to follow/)
twitter.com##div [role="heading"]:has-text(/Who to follow/):xpath(..)
twitter.com##div [role="heading"]:has-text(/Who to follow/):xpath(../../..) + div
twitter.com##div [role="heading"]:has-text(/Who to follow/):xpath(../../..) + div + div
twitter.com##div [role="heading"]:has-text(/Who to follow/):xpath(../../..) + div + div + div
twitter.com##div [role="heading"]:has-text(/Who to follow/):xpath(../../..) + div + div + div + div
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment