No Google AI

Hides AI Mode and AI Overview in Google search results

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         No Google AI
// @description  Hides AI Mode and AI Overview in Google search results
// @version      2025-11-04

// @author       Zeerocss
// @namespace    https://greasyfork.org/en/users/735136-zeerocss
// @license      MIT

// @include      *://*.google.tld/search*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=google.com

// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';

    const hide_ai_mode = true;
    const hide_ai_overview = true;

    window.addEventListener('DOMContentLoaded', () => {
        const ai_mode = document.querySelector('a[href*="udm=50"]');
        const ai_overview = document.querySelector('div[data-mcp]');

        ([hide_ai_mode && ai_mode && ai_mode.closest('[role=listitem]'), hide_ai_overview && ai_overview && ai_overview.parentElement]).forEach(el => el && (el.style.display = 'none'));
    });
})();