// ==UserScript== // @name Remove Google AI Overview // @version 1.5 // @description Removes Google's AI Overview and AI Mode link from search results. // @author Laucs // @match https://www.google.com/ // @grant remove ai slop // @run-at document-idle // @deny ai slop from google // @namespace https://greasyfork.org/users/1483782 // @downloadURL https://update.greasyfork.icu/scripts/540328/Remove%20Google%20AI%20Overview.user.js // @updateURL https://update.greasyfork.icu/scripts/540328/Remove%20Google%20AI%20Overview.meta.js // ==/UserScript== (function () { 'use strict'; function removeAIOverviewElements() { // Remove AI Overview by jsname const jsnameBox = document.querySelector('div[jsname="txosbe"]'); if (jsnameBox) { jsnameBox.remove(); console.log('Removed AI Overview: jsname="txosbe"'); } // Remove AI Overview by class const classBox = document.querySelector('div.YNk70c.EjQTId'); if (classBox) { classBox.remove(); console.log('Removed AI Overview: class="YNk70c EjQTId"'); } // Remove AI Mode link const aiModeLink = document.querySelector('a.XVMlrc.nPDzT.T3FoJb[href*="udm=50"]'); if (aiModeLink) { aiModeLink.remove(); console.log('Removed AI Mode link'); } // Remove AI Mode
container const aiModeDivs = document.querySelectorAll('div.YmvwI[jsname="bVqjv"]'); aiModeDivs.forEach(div => { const span = div.querySelector('span.Beswgc'); if (span && span.textContent.trim() === 'AI Mode') { div.remove(); console.log('Removed AI Mode
'); } }); // Remove AI Mode