您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides the AI Overview box in Google Search by removing the container. This only hdies the top because I'm too lazy and I only did this so this stupid thing won't load incorrect info when I'm doing my research project
// ==UserScript== // @name Hide Google AI Overview // @namespace https://greasyfork.org/users/lucasliorle // @version 0.1 // @description Hides the AI Overview box in Google Search by removing the container. This only hdies the top because I'm too lazy and I only did this so this stupid thing won't load incorrect info when I'm doing my research project // @author LucasLiorLE // @match https://www.google.com/search* // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; function removeAIOverview() { const headings = document.querySelectorAll('h1'); for (const h1 of headings) { if (h1.textContent.trim() === 'AI Overview') { let container = h1; for (let i = 0; i < 5; i++) { if (container?.parentElement) { container = container.parentElement; } else { container = null; break; } } if (container) { container.style.display = 'none'; console.log('[AI Overview Hidden]', container); } } } } removeAIOverview(); const observer = new MutationObserver(removeAIOverview); observer.observe(document.body, { childList: true, subtree: true }); })();