Skip to content

Instantly share code, notes, and snippets.

@ivan
Last active July 13, 2022 05:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivan/cf2d7e53718e8f3a4489f3e66213136d to your computer and use it in GitHub Desktop.
Save ivan/cf2d7e53718e8f3a4489f3e66213136d to your computer and use it in GitHub Desktop.
uBlock Origin rules to hide useless stuff on Google Search results pages
! This is the most annoying one that Google optimizes for accidental clicks.
!
! Hide the 'People also search for' slide-in box when going back on Google Search.
! We require the other attributes here to reduce the risk of false positives.
www.google.com#$#div[id^="eob_"][jscontroller][jsdata][jsaction][data-ved] { display: none !important; }
! Hide the 'People also ask' box
www.google.com#$#div[data-initq][data-it][jscontroller][jsaction]:nth-ancestor(1) { display: none !important; }
! Hide the 'Related searches' box
www.google.com#$#span[class]:has-text(/^Related searches$/):nth-ancestor(2) { display: none !important; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment