Google's built-in AI is broken in PM: Something went wrong and the content wasn't generated.

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
Stargate38
Fanatic
Fanatic
Posts: 101
Joined: 2018-05-27, 22:55
Location: Earth

Google's built-in AI is broken in PM: Something went wrong and the content wasn't generated.

Post by Stargate38 » 2026-03-20, 14:34

Please always mention the name/domain of the website in question in your topic title.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:

1) Clear any current output
2) Navigate or refresh the page in question
3) Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.

Code: Select all

**PASTE CONSOLE OUTPUT HERE**
Content Security Policy: Couldn’t parse invalid host 'report-sample'  
(unknown)
Content Security Policy: Ignoring “'unsafe-inline'” within script-src: ‘strict-dynamic’ specified  
(unknown)
Content Security Policy: Ignoring “https:” within script-src: ‘strict-dynamic’ specified  
(unknown)
Content Security Policy: Ignoring “http:” within script-src: ‘strict-dynamic’ specified  
(unknown)
Empty string passed to getElementById().  
m=b,dpf:39:163
Empty string passed to getElementById().  
m=attn,cdos,gwc,hsm,jsa,cEt90b,SNUn3,qddgKe,sTsDMc,dtl0hd,eHDfl,YV5bee,d,csi:194:163
Content Security Policy: Ignoring “'unsafe-inline'” within script-src: nonce-source or hash-source specified 
(unknown)
Content Security Policy: Couldn’t process unknown directive ‘require-trusted-types-for’
https://www.google.com/search?q=how+to+ ... +on+reboot (click on AI Mode in the top bar)

I know AI isn't too accurate, and can often mislead, therefore the reason I don't trust it 100%, but I still think it should work instead of throwing an error. Is there any way of getting it to work in PM? It works fine in Chrome and FF.

User avatar
Night Wing
Knows the dark side
Knows the dark side
Posts: 5850
Joined: 2011-10-03, 10:19
Location: Piney Woods of Southeast Texas, USA

Re: Google's built-in AI is broken in PM: Something went wrong and the content wasn't generated.

Post by Night Wing » 2026-03-20, 15:27

The link works in Waterfox and Firefox, but not in Pale Moon. My guess is since it is Google, Google is probably trying to steer users towards it's Chrome browser.
MX Linux 25.1 (Infinity) Xfce w/Pale Moon, Waterfox, Firefox
Linux Debian 13.4 (Trixie) Xfce w/Pale Moon, Waterfox, Firefox

User avatar
MrD2018
Apollo supporter
Apollo supporter
Posts: 49
Joined: 2018-07-03, 15:32
Location: United Kingdom

Re: Google's built-in AI is broken in PM: Something went wrong and the content wasn't generated.

Post by MrD2018 » 2026-03-23, 17:57

The Google AI requires support for TextDecoderStream which Pale Moon does not have. I have found that using a Greasemonkey script to substitute the TextDecoderStream decoder with TextDecoder fixes the problem.

User avatar
BopBe
Apollo supporter
Apollo supporter
Posts: 31
Joined: 2019-08-21, 19:59

Re: Google's built-in AI is broken in PM: Something went wrong and the content wasn't generated.

Post by BopBe » 2026-03-24, 17:25

MrD2018 wrote:
2026-03-23, 17:57
The Google AI requires support for TextDecoderStream which Pale Moon does not have. I have found that using a Greasemonkey script to substitute the TextDecoderStream decoder with TextDecoder fixes the problem.
Share the script please. I miss google's AI summary for short computer related questions.

User avatar
MrD2018
Apollo supporter
Apollo supporter
Posts: 49
Joined: 2018-07-03, 15:32
Location: United Kingdom

Re: Google's built-in AI is broken in PM: Something went wrong and the content wasn't generated.

Post by MrD2018 » 2026-03-25, 20:36

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.

Code: Select all

// ==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
    });

})();

User avatar
Mæstro
Board Warrior
Board Warrior
Posts: 1091
Joined: 2019-08-13, 00:30
Location: Casumia

Re: Google's built-in AI is broken in PM: Something went wrong and the content wasn't generated.

Post by Mæstro » 2026-03-26, 00:30

I should consider the plagiarised spam failing to appear as a feature, not a bug, and stop using Google anyway. ;)
I think a statement like this is in order after several others have successfully helped OP in his stated purposes.
Life is a fever dream Mæstro would enjoy.
All posts 100% organic. Ash is the best letter.
What is being nice online?
Debian 10 ELTS / Official PM build

User avatar
BopBe
Apollo supporter
Apollo supporter
Posts: 31
Joined: 2019-08-21, 19:59

Re: Google's built-in AI is broken in PM: Something went wrong and the content wasn't generated.

Post by BopBe » 2026-04-06, 13:36

MrD2018 wrote:
2026-03-25, 20:36
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.
It has some duplicate elements rendering bug but it's a major step up from having nothing. Cheers mate, appreciate it. And sorry for the very, very late reply.