Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

At the risk of making an unsubstantive comment, this is a huge help to me, and I've been trying to figure out how to do this for years.

Thank you!



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))




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: