google.*##.g:has(a[href*="thetopsites.com"])
duckduckgo.*##.results > div:has(a[href*="thetopsites.com"])
The linked project goes way beyond this though, very neat! google.*##.g:has(a[href*="thetopsites.com"])
duckduckgo.*##.results > div:has(a[href*="thetopsites.com"])
The linked project goes way beyond this though, very neat!Thank you!
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))That works well enough for me, and it saves having another browser extension to configure!
Not just that, it saves having another browser extension to trust. A large number of the sites I get to are through search results. A malicious extension that has access to modify search results could do a lot of damage.
Hell, I know people who get to their bank and other sensitive sites by typing the name of the institution into Google, rather than typing the URL. Being able to modify search results would be great for phishing.
One less extension equals one less security/privacy liability too!
google.##.g:has(a[href="pinterest.com"])
google.##.g:has(a[href="*.pinterest.com"])
dunno. i primarily use duck which apparently does not show that many pinterest results and even that one didn't work. i would have to investigate
google.##.g:has(a[href="pinterest.com"])
I STRONGLY recommend the latter.
I think what you're trying to write is:
google.*##.g:has(a[href=*"pinterest.com"])
(I'm inferring that based on the italic/roman text in your pattern line. I'm probably inferring wrong.)HN's markup interpreter will style any line indented by two or more spaces as code, and not interpret special symbols. The lines will wrap, however (wrapping is a relatively new feature).