Greasy Fork is available in English.
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 http://greasyfork.icu/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 });
})();