Hacker Newsnew | past | comments | ask | show | jobs | submit | loeg's favoriteslogin

I've posted this before, but you can achieve the same with uBlock Origin static filters alone without having to install any additional extensions. For example:

To block results from specific domains on Google or DDG:

    google.*##.g:has(a[href*="thetopsites.com"])
    duckduckgo.*##.results > div:has(a[href*="thetopsites.com"])
And it's even possible to target an element's text content with a `:has-text(/regex/)` selector:

    google.*##.g:has(*:has-text(/bye topic of noninterest/i))
    duckduckgo.*##.results > div:has(*:has-text(/bye topic of noninterest/i))
As a bonus, here's how to get rid of Medium's obnoxious cookie notification across all domains:

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

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

Search: