{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreibmmlsf2lfum6mmkdszgowero24cztst2mtm5qzqxg75b7im3ulva",
    "uri": "at://did:plc:hqad6xwuzg7oqfmwylfkvqfm/app.bsky.feed.post/3mhw6jfedvto2"
  },
  "path": "/viewtopic.php?t=33255&p=271440#p271440",
  "publishedAt": "2026-03-25T20:36:08.000Z",
  "site": "http://forum.palemoon.org",
  "tags": [
    "@name",
    "@namespace",
    "@include",
    "@run-at",
    "@version",
    "@grant"
  ],
  "textContent": "Below is the code I have used. It is just a work in progress, but it does restore the AI feature. I have had to update it a couple of times as Google have kept changing their script, altering some of the variable names, so this could happen again.\n\n\nCODE:\n\n\n    // ==UserScript==// @name Google Script Rewriter// @namespace name// @include https://www.google.com/search*// @run-at document-start// @version 1// @grant none// ==/UserScript==(function() { var observer = new MutationObserver(mutations => { for (var m of mutations) { for (var node of m.addedNodes) { if (node.tagName === \"SCRIPT\" && node.textContent.includes(\"pipeThrough\")) { // removes TextDecoderStream node.textContent = node.textContent.replace( \".pipeThrough(new TextDecoderStream)\", \"\" ); //adds TextDecoder node.textContent = node.textContent.replace( \"await a.B.read();\", \"await a.B.read();var dd = new TextDecoder().decode(d);d=dd;\" ); //makes d a variable node.textContent = node.textContent.replace( \"const {value:d\", \"var {value:d\" ); //stop AI Overview section from being deleted node.textContent = node.textContent.replace( \"for(let f=a.firstChild;f!==e;f=a.firstChild)a.removeChild(f)\", \"/*for(let f=a.firstChild;f!==e;f=a.firstChild)a.removeChild(f)*/\" ); var clone = document.createElement(\"script\"); clone.textContent = node.textContent; node.replaceWith(clone); } } } }); observer.observe(document.documentElement, { childList: true, subtree: true });})();\n\n* * *",
  "title": "Web Compatibility Support • Re: Google's built-in AI is broken in PM: Something went wrong and the content wasn't generated.",
  "updatedAt": "2026-03-25T20:36:08.000Z"
}