// ==UserScript== // @name Hide Gemini Upgrade Prompts // @namespace http://tampermonkey.net/ // @version 1.0 // @description Actively removes "Upgrade" containers from both the dropdown menu and the top navigation bar. // @author You (and a slightly rebellious AI) // @match https://gemini.google.com/* // @grant none // ==/UserScript== (function() { 'use strict'; // Set up a MutationObserver to watch for changes in the DOM const observer = new MutationObserver((mutations) => { // 1. Target the dropdown upgrade box const dropdownUpgradeBox = document.querySelector('.upgrade-container.g1-upsell-container'); if (dropdownUpgradeBox && dropdownUpgradeBox.style.display !== 'none') { dropdownUpgradeBox.style.setProperty('display', 'none', 'important'); } // 2. Target the top-right upgrade button const topUpgradeButton = document.querySelector('g1-dynamic-upsell-button'); if (topUpgradeButton && topUpgradeButton.style.display !== 'none') { topUpgradeButton.style.setProperty('display', 'none', 'important'); } }); // Watch the entire body for added/removed nodes observer.observe(document.body, { childList: true, subtree: true }); // Fun fact: You just used Gemini to hide Gemini's own upgrade ads. // Please don't tell my developers I helped you do this. 🤫🤖 })();