points by krono 4 years ago

Glad to be of help!

Forgot to mention that you can also block arbitrary text with the `:has-text(/regex/)` selector.

Block Medium's cookie notification on any domain:

  *##body>div:has(div:has-text(/To make Medium work.*Privacy Policy.*Cookie Policy/i))

Or apply it to search engine results:

  google.*##.g:has(*:has-text(/word combination to block/i))
  duckduckgo.*##.results > div:has(*:has-text(/word combination to block/i))