Skip to content

Instantly share code, notes, and snippets.

@acro5piano
Created December 7, 2020 09:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acro5piano/e78e786b15e599ff41f61f1905c5848e to your computer and use it in GitHub Desktop.
Save acro5piano/e78e786b15e599ff41f61f1905c5848e to your computer and use it in GitHub Desktop.
How to stop Google's “people also search for”

https://webapps.stackexchange.com/questions/115038/how-to-stop-googles-people-also-search-for

Step 1

Add this chrome plugin to inject JS.

https://chrome.google.com/webstore/detail/css-js-injector/gamgadbdliolbhjdcfjjpjfjhgfnckbp

Step 2

Add this custom script.

new MutationObserver(() => {
  Array.from(document.querySelectorAll('div[id*=eob]')).map((elm) => {
    elm.remove()
  })
  Array.from(document.querySelectorAll('div.rc')).map((elm) => {
    elm.style.height = 'unset'
  })
}).observe(document.getElementById('search'), {
  attributes: true,
  childList: true,
  subtree: true,
})

image

@kms54321
Copy link

Outstanding. Thank you so very much for this.

@acro5piano
Copy link
Author

@kms54321

Outstanding. Thank you so very much for this.

I don't think this solution is working now. Google's DOM changes...

@Alwinator
Copy link

Thanks for your solution. For Firefox I am using this extension: https://addons.mozilla.org/en-US/firefox/addon/codeinjector/

@acro5piano
Copy link
Author

Thanks for sharing

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