Skip to content

Instantly share code, notes, and snippets.

@mmazzarolo
Last active February 21, 2024 10:19
Show Gist options
  • Save mmazzarolo/34e5418aade64abe7618885e0c36d8a2 to your computer and use it in GitHub Desktop.
Save mmazzarolo/34e5418aade64abe7618885e0c36d8a2 to your computer and use it in GitHub Desktop.
Disabling "People also search for" box in Google search results

2020-06-19 update:

I just published a blog post with a few other options and info on decluttering Google's search results page.

Disabling "People also search for" box in Google search results

😡😡😡

image

Option 1: Add a rule to hide the "People also search for" box by targeting its style.

If you're using uBlock origin, add one of the following custom CSS rules:

google.com##.AUiS2
! 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; }

Alternatively, if you have the Stylish extension (or similar), you can add the rule with:

.AUiS2 {
  display: none !important;
}

Please keep in mind that the target class name (AUiS2) might suddenly change and you'd need to update your custom rule — in that case, please comment in this gist and I'll update the rule 👍.

Option 2: Disable the JavaScript code that runs/shows the "People also search for" box.

If you're using uBlock origin, add the following custom rule:

https://www.google.*/xjs/*

This is a very aggressive solution that seems to be working consistently, but also breaks the static "People also ask" box and other Google's search page result enhancements (e.g.: stock market, calculator, etc...).

@mmazzarolo
Copy link
Author

mmazzarolo commented Jun 16, 2022

@ambaca
Copy link

ambaca commented Jan 27, 2023

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