Skip to content

Instantly share code, notes, and snippets.

@nask0
Forked from mindplay-dk/clean-google.txt
Created September 26, 2025 04:16
Show Gist options
  • Select an option

  • Save nask0/81eb715ecdfe27d4e2383587d7ed5e6e to your computer and use it in GitHub Desktop.

Select an option

Save nask0/81eb715ecdfe27d4e2383587d7ed5e6e 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"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment