Skip to content

Instantly share code, notes, and snippets.

@mindplay-dk
Last active August 26, 2025 16:35
Show Gist options
  • Save mindplay-dk/e84502e5175e2f6a9b06137447d10707 to your computer and use it in GitHub Desktop.
Save mindplay-dk/e84502e5175e2f6a9b06137447d10707 to your computer and use it in GitHub Desktop.
"Clean Google" ad blocking content filter (for Brave, uBlock origin, etc.)
# Block everything in search results except actual results & videos:
www.google.com###search div>div[data-rpos]:not(:has([data-snf])):not(:has([data-vurl])):not(:has(h3>a.l)):not(:has([jscontroller]):has([data-maindata*="currency"]))
# AI overview:
www.google.com##[data-mcpr]
# Junk below search results:
www.google.com###bres
# Junk in right-hand column:
www.google.com##div[jscontroller]:has(div[data-rrhs])
# Top nav search suggestions:
www.google.com##div[role="navigation"]:has([data-st-cnt="mode"])
# "People also search for":
www.google.com##div[data-abe][data-hveid]:has(a[href^="/search"])
@mindplay-dk
Copy link
Author

Raw URL for pasting into "Custom Lists" in Brave:

https://gist.githubusercontent.com/mindplay-dk/e84502e5175e2f6a9b06137447d10707/raw/clean-google.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment