Skip to content

Instantly share code, notes, and snippets.

@james2doyle
Last active November 21, 2023 17:39
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 james2doyle/3cea6e48ef392eef5a9476539785b532 to your computer and use it in GitHub Desktop.
Save james2doyle/3cea6e48ef392eef5a9476539785b532 to your computer and use it in GitHub Desktop.
Some ublock rules that block elements that match specific pieces of text
! 2022-03-24 https://twitter.com
twitter.*##div[aria-label="Timeline: Trending now"]
twitter.*##div[aria-label="Home timeline"] > div > div article:has(div > div > div > span:has-text(Ad))
! 2022-03-29 https://google.com
google.*##.g:has(a[href*="thetopsites.com"])
google.*##.g:has(*:has-text(/bye topic of noninterest/i))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment