Google Search - Hide "People also search for"

hide annoying popup below most recently visited the search result

  1. // ==UserScript==
  2. // @name Google Search - Hide "People also search for"
  3. // @namespace https://zachhardesty.com
  4. // @author Zach Hardesty <zachhardesty7@users.noreply.github.com> (https://github.com/zachhardesty7)
  5. // @description hide annoying popup below most recently visited the search result
  6. // @copyright 2019-2024, Zach Hardesty (https://zachhardesty.com/)
  7. // @license GPL-3.0-only; http://www.gnu.org/licenses/gpl-3.0.txt
  8. // @version 1.1.4
  9.  
  10. // @homepageURL https://github.com/zachhardesty7/tamper-monkey-scripts-collection/raw/master/google-hide-search-interruptions.user.js
  11. // @homepage https://github.com/zachhardesty7/tamper-monkey-scripts-collection/raw/master/google-hide-search-interruptions.user.js
  12. // @homepageURL https://openuserjs.org/scripts/zachhardesty7/Google_Search_-_Hide_People_also_search_for
  13. // @homepage https://openuserjs.org/scripts/zachhardesty7/Google_Search_-_Hide_People_also_search_for
  14. // @supportURL https://github.com/zachhardesty7/tamper-monkey-scripts-collection/issues
  15.  
  16.  
  17. // @match https://www.google.com/search/*
  18. // @require https://greasyfork.org/scripts/419640-onelementready/code/onElementReady.js?version=887637
  19. // ==/UserScript==
  20.  
  21. /* global onElementReady */
  22.  
  23. // only operate once necessary el has loaded
  24. onElementReady(".exp-outline", { findOnce: true }, (el) => {
  25. // remove text
  26. el.parentElement.querySelector("div").querySelector(":nth-child(3)").remove()
  27. el.remove() // remove border
  28. })