Special filters - iam-py-test/my_filters_001 GitHub Wiki

Special filters

This is a list of special uBlock Origin filters you can use. Most of these are too specific to be put into a filter list, so they are just listed here:

Hiding comments on Google Meet

meet.google.com##div.GDhqjd:has-text([text])

Hiding DuckDuckGo results (normal DuckDuckGo, does not work on html.duckduckgo.com)

Please tell me if there is a better way to hide DDG results; this is just the one I found via the Element Picker
Block anything with specific text: duckduckgo.com,3g2upl4pq6kufc4m.onion,duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion##[data-nrn="result"]:has-text(Whatever)
Block anything with specific links: duckduckgo.com,3g2upl4pq6kufc4m.onion,duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion##[data-nrn="result"]:has(a[href="https://iam-py-test.github.io/nope/hidethisfrommyresults"])

The onion domains are for Tor users; you are free to delete them if you do not use Tor.

Hiding Google results

Please tell me if there is a better way to hide Google results; this is just the one I found via the Element Picker
google.com##.tF2Cxc:has-text([text])

Preventing unload prompts (any site)

[siteyouwantpopupsblockedon.com]##+js(aopw,window.onbeforeunload)

Block use of window.name

[sitewhoabuseswindow.name]##+js(aopr,window.name)

Change the selection color

[website]#$#* ::selection {color:[newcolor] !important}
If you want it to apply to all websites, use *#$#* ::selection {color:[newcolor] !important}.
Replace [newcolor] with the color (i.e. red) and [website] with the website (i.e. example.com).

⚠️ **GitHub.com Fallback** ⚠️