by krono · 4y ago · 0 comments
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 element content with regex with the `: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))
Bonus content: Ever tried getting rid of Medium's obnoxious cookie notification? Just nuke it from orbit on all domains: *##body>div:has(div:has-text(/To make Medium work.*Privacy Policy.*Cookie Policy/i))Filtering out the spam only removes the clones; it doesn't get the good results back in.
The time spent (including maintenance) will be paid back faster than you might expect.
Optionally rewrite some sites to altfronts like nitter/scribe/piped. If you care about spending time on privacy and decoupling searches from visits, you can set up arbitrary proxying rules.
One benefit among others over browser extensions is that it's a one-time setup for all your devices and clients. All you need to do on reinstall is to change the default search engine.
Either way, OP's ask was for a way to blacklist results, and I'm providing a method to accomplish exactly that. Edit: The rest is up to Google.
twitter.*##div[aria-label="Timeline: Trending now"]
This will hide the trending tweets box. You can see it's targeting the `aria-label` attribute on the `div` elementSo, I guess it varies.