Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Disabling "People also search for" box in Google search results

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 the following custom CSS rule:

google.com##.AUiS2

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...).

@ivan

This comment has been minimized.

Copy link

@ivan ivan commented Nov 16, 2020

Excellent, thank you.

@shalva97

This comment has been minimized.

Copy link

@shalva97 shalva97 commented Jan 5, 2021

nice

@awulkan

This comment has been minimized.

Copy link

@awulkan awulkan commented Mar 8, 2021

Thanks, it worked.

@pgross41

This comment has been minimized.

Copy link

@pgross41 pgross41 commented Mar 10, 2021

So good

@willmcc

This comment has been minimized.

Copy link

@willmcc willmcc commented Apr 8, 2021

THANK YOU! This "feature" has been bugging me for years and lately it's been really getting on my nerves

@seferdemirci

This comment has been minimized.

Copy link

@seferdemirci seferdemirci commented Apr 13, 2021

Thanks! This feature was not fit with the user experience. I hope Google cancels it ASAP!

@pgross41

This comment has been minimized.

Copy link

@pgross41 pgross41 commented Apr 14, 2021

I found this breaks the static "People also ask" box where you choose to click expand (in addition to the annoying "People also search for" pop-in one). If you have the Stylish extension (or similar), the following CSS rule will disable only the annoying one:

.AUiS2{
    display: none !important;
}
@mmazzarolo

This comment has been minimized.

Copy link
Owner Author

@mmazzarolo mmazzarolo commented Apr 16, 2021

Thank you @pgross41, I added your solution to the list ๐Ÿ‘

@robertpiosik

This comment has been minimized.

Copy link

@robertpiosik robertpiosik commented May 24, 2021

Both options combined:

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

google.com##.AUiS2

This class didn't change since mentioned on 14 April so the method seems to be effective.

@mmazzarolo

This comment has been minimized.

Copy link
Owner Author

@mmazzarolo mmazzarolo commented May 24, 2021

@robertpiosik thank you, I updated the top post ๐Ÿ‘

@robertpiosik

This comment has been minimized.

Copy link

@robertpiosik robertpiosik commented May 24, 2021

@mmazzarolo note, the first option breaks interactive features of google such as stock market charts or upcoming sport events tables.

Should be removed imho.

@mmazzarolo

This comment has been minimized.

Copy link
Owner Author

@mmazzarolo mmazzarolo commented May 24, 2021

@robertpiosik I'll add it to the description and swap the options order but I'm still keeping it because the CSS one is way more prone to stop working (I personally experienced it at least twice in the past).

@robertpiosik

This comment has been minimized.

Copy link

@robertpiosik robertpiosik commented May 24, 2021

Sounds reasonable. Cheers

@pgross41

This comment has been minimized.

Copy link

@pgross41 pgross41 commented May 24, 2021

I wish I could "like" this gist and some of the comments. @mmazzarolo you are a true hero.

๐Ÿ‘ ๐ŸŽ‰ ๐Ÿš€ ๐Ÿ”ฅ

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