r/userscripts • • 13d ago

Gemini Firefox patch

The following userscript removes an ornamental class that hangs Gemini on Firefox.

// ==UserScript==
// @name         Gemini Firefox patch
// @namespace    https://tampermonkey.net/
// @version      1.0
// @description  Removes the show-lm-background class so the glow never renders
// @match        https://gemini.google.com/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

(() => {
  const strip = () =>
    document
      .querySelectorAll('.show-lm-background')
      .forEach((el) => el.classList.remove('show-lm-background'));

  new MutationObserver(strip).observe(document.documentElement, {
    childList: true,
    subtree: true,
    attributes: true,
    attributeFilter: ['class'],
  });
})();
5 Upvotes

Duplicates