移除 Google 搜尋的 AI 模式

移除 Google 搜尋結果中的 AI 模式

当前为 2025-10-15 提交的版本,查看 最新版本

// ==UserScript==
// @name         移除 Google 搜尋的 AI 模式
// @name:en      Remove Google Search AI Mode
// @name:zh-TW   移除 Google 搜尋的 AI 模式
// @name:zh-CN   移除 Google 搜索的 AI 模式
// @name:ja      Google検索のAIモードを削除
// @name:ko      Google 검색 AI 모드 제거
// @version      1.0
// @description  移除 Google 搜尋結果中的 AI 模式
// @description:en Remove AI Mode from Google Search results
// @description:zh-TW 移除 Google 搜尋結果中的 AI 模式
// @description:zh-CN 移除 Google 搜索结果中的 AI 模式
// @description:ja Google検索結果からAIモードを削除
// @description:ko Google 검색 결과에서 AI 모드 제거
// @author       movwei
// @license      MIT
// @match        https://www.google.com/*
// @match        https://www.google.com/search*
// @match        https://www.google.*/search*
// @grant        none
// @run-at       document-start
// @namespace https://gf.qytechs.cn/users/1041101
// ==/UserScript==

(function() {
    'use strict';

    const style = document.createElement('style');
    style.textContent = `
        div[jsname="xBNgKe"][role="listitem"] {
            display: none !important;
        }
        button.plR5qb[jsname="B6rgad"],
        button[jsname="B6rgad"][role="link"].plR5qb {
            display: none !important;
        }
        div#Odp5De {
            display: none !important;
        }
    `;

    if (document.head) {
        document.head.appendChild(style);
    } else {
        const observer = new MutationObserver(function() {
            if (document.head) {
                document.head.appendChild(style);
                observer.disconnect();
            }
        });
        observer.observe(document.documentElement, { childList: true, subtree: true });
    }
})();

QingJ © 2025

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