Greasy Fork is available in English.

Google - Block "People also search for" & "People also ask"

Block the "...also search for..." and "...also ask" boxes in Google search results. Does not rely on hardcoded class names, so it's more future proof.

Autore
dymk
Installazioni giornaliere
0
Installazioni totali
87
Valutazione
2 0 0
Versione
1.2
Creato il
13/06/2022
Aggiornato il
13/06/2022
Licenza
GPL-3.0
Applica a

"People also search for" Blocker

Github page: https://github.com/dymk/block-google-also-search-for

Blocks the "People also search for" and "People also ask" boxes in Google search using XPath queries.

About

The "People also search for" box pops up dynamically, and after a slight delay, causing everything under it to reposition itself. This looks for those elements and removes them.

How to Install

This is a userscript, so install using your favorite userscript host, such as Greasemonkey or Tampermonkey.

Technical

The elements are queried using XPath, rather than using CSS class selectors. Many existing scripts and blockers for the "People also search for" box will fail after some time, as the CSS selector names that Google uses are minified/obfuscated/generated, and thus change over time.

Using an XPath query should prove more resilient, as it looks at the text of HTML attributes (which doesn't change, at least as often).

Google may decide to change the underlying structure of the HTML on the Search Results page, which may break this plugin in the future, but it should be a matter of "just" recomputing how many div elements to select upwards.

Contributing

  1. Fork the repository
  2. Open a pull request
  3. I'll merge it if it looks good