您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically hides the AI Overview section from Google search pages.
// ==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.2 // @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, 100); setTimeout(removeAiOverview, 200); setTimeout(removeAiOverview, 300); setTimeout(removeAiOverview, 400); setTimeout(removeAiOverview, 600); setTimeout(removeAiOverview, 800); setTimeout(removeAiOverview, 1000); setInterval(removeAiOverview, 1000);