Remove Google AI Overview

Automatically hides the AI Overview section from Google search pages.

Ajankohdalta 21.6.2025. Katso uusin versio.

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 or Violentmonkey 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 AI Overview
// @namespace   Violentmonkey Scripts
// @match       https://www.google.com/search*
// @icon        https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant       none
// @version     1.1
// @author      klaufir216
// @run-at      document-start
// @license     MIT
// @description Automatically hides the AI Overview section from Google search pages.
// ==/UserScript==

function parentUntil(elem, cond) {
  while (elem) {
    if (cond(elem)) return elem;
    elem = elem.parentNode;
  }
  return null;
}

function hideElement(elem) {
  if (elem) {
    elem.style.display='none';
  }
}

function removeAiOverview() {
  hideElement(document.querySelector('div[data-mlros]'));
  hideElement(document.querySelector('div#m-x-content'));
}

setTimeout(removeAiOverview, 200);
setTimeout(removeAiOverview, 500);
setInterval(removeAiOverview, 1000);