Remove Google "People also search for"

Get rid of that annoying box that transitions in on the search page of google and tells what other people have searched for .

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Remove Google "People also search for"
// @namespace    http://spadrig.se/
// @version      1.1
// @description  Get rid of that annoying box that transitions in on the search page of google and tells what other people have searched for .
// @author       Oscar Jonsson  -  [email protected]
// @match        https://www.google.com/search*
// @icon         https://www.google.com/s2/favicons?domain=google.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    const config = { attributes: true, childList: false, subtree: true };
    const callback = function(mutationsList, observer) {
        for(let mutation of mutationsList)
            if (mutation.attributeName==="style"&&mutation.target.getAttribute("style")==="display: block; opacity: 1;") {
                mutation.target.parentElement.parentElement.style.height="auto";//cancel out the container-div expanding which it does to contain annoying box
                mutation.target.remove();//remove the annoying box
                return observer.disconnect();
            }
    };
    const observer = new MutationObserver(callback);
    observer.observe(document.body, config);
})();