Remove Google AI Overview

Removes Google's AI Overview from search results.

// ==UserScript==
// @name         Remove Google AI Overview
// @version      1.3
// @description  Removes Google's AI Overview from search results.
// @author       Laucs
// @match        https://www.google.com/search?*
// @grant        none
// @run-at       document-idle

// @namespace https://gf.qytechs.cn/users/1483782
// ==/UserScript==

(function () {
    'use strict';

    function removeAIOverviewElements() {
        // Remove by jsname
        const jsnameBox = document.querySelector('div[jsname="txosbe"]');
        if (jsnameBox) {
            jsnameBox.remove();
            console.log('Removed AI Overview: jsname="txosbe"');
        }

        // Remove by exact class match
        const classBox = document.querySelector('div.YNk70c.EjQTId');
        if (classBox) {
            classBox.remove();
            console.log('Removed AI Overview: class="YNk70c EjQTId"');
        }
    }

    // Run once immediately and observe for dynamic changes
    removeAIOverviewElements();

    const observer = new MutationObserver(removeAIOverviewElements);
    observer.observe(document.body, { childList: true, subtree: true });
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址