DEV Community

Peter Franken
Peter Franken

Posted on

Exclude domains from Google/DDG search results permanently (bye bye "thetopsites")

Add the following to your favourite adblocker's filter list:

// Google flavour
google.*##.g:has(a[href*="codegrepper.com"])
google.*##.g:has(a[href*="developreference.com"])
google.*##.g:has(a[href*="javascriptio.com"])
google.*##.g:has(a[href*="thetopsites.com"])

// DuckDuckGo flavour
duckduckgo.*##.results > div:has(a[href*="codegrepper.com"])
duckduckgo.*##.results > div:has(a[href*="developreference.com"])
duckduckgo.*##.results > div:has(a[href*="javascriptio.com"])
duckduckgo.*##.results > div:has(a[href*="thetopsites.com"])

Anyone else getting an increasing amount of Italian domains that redirect to spam/scam sites when searching for obscure stuff? Suffer no longer:

google.*##.g:has(a[href*=".it"][href$=".html"]) 

Warning: this targets every single .it domain with a URL ending in .html.

Top comments (0)