Janitor AI just broke: TextDecoderStream is not defined Topic is solved

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.
dinosaur
Fanatic
Fanatic
Posts: 231
Joined: 2014-06-03, 09:26
Location: France

Janitor AI just broke: TextDecoderStream is not defined

Post by dinosaur » 2026-06-11, 23:22

JanitorAi used to work just fine with PM, but as of today, it broke because of text streaming.

I now get a "TextDecoderStream is not defined" error when the AI tries and generates text, and disabling text streaming in JAI's preferences does not solve it.

I also tried and installed Basilk's polyfills scripts in Greasemonkey for Pale Moon but it does not work (sometimes I get "ReadableStream method pipeThrough not yet implemented" instead of the TextDecoderStream error, even though the corresponding polyfill is installed).

User avatar
andyprough
Forum staff
Forum staff
Posts: 1574
Joined: 2020-05-31, 04:33

Re: Janitor AI just broke: TextDecoderStream is not defined

Post by andyprough » 2026-06-12, 02:02

Is Pale Moon missing TextDecoderStream and/or ReadableStream.pipeThrough support?

dinosaur
Fanatic
Fanatic
Posts: 231
Joined: 2014-06-03, 09:26
Location: France

Re: Janitor AI just broke: TextDecoderStream is not defined

Post by dinosaur » 2026-06-12, 09:41

andyprough wrote:
2026-06-12, 02:02
Is Pale Moon missing TextDecoderStream and/or ReadableStream.pipeThrough support?
Dunno, but even with Basilik's readablestream-pipethrough-polyfill.user.js, readablestream-pipeto-polyfill.user.js, textdecoderstream-polyfill.user.js, textencoderstream-polyfill.user.js and transformstream-polyfill.user.js installed in Greasemonkey, it does not work (those script apparently have no effect whatsoever, and I wonder if they are even remotely compatible with PM).

User avatar
andyprough
Forum staff
Forum staff
Posts: 1574
Joined: 2020-05-31, 04:33

Re: Janitor AI just broke: TextDecoderStream is not defined

Post by andyprough » 2026-06-12, 16:41

dinosaur wrote:
2026-06-12, 09:41
Dunno, but even with Basilik's readablestream-pipethrough-polyfill.user.js, readablestream-pipeto-polyfill.user.js, textdecoderstream-polyfill.user.js, textencoderstream-polyfill.user.js and transformstream-polyfill.user.js installed in Greasemonkey, it does not work (those script apparently have no effect whatsoever, and I wonder if they are even remotely compatible with PM).
I don't have a janitorAI account, but if I open the page in basilisk with greasemonkey installed and all the readablestream, textdecoderstream, and transformstream user.js in use, then I get this home page:
Screenshot_2026-06-12_11-39-05.jpg
-----
Is that making any progress? Or would I need to create an account in order to find out if it's working?

UPDATE - I made an account, and am able to pull up the different cards/pages, and search for things. I don't know how this site is supposed to work, but it looks workable right now.
Screenshot_2026-06-12_11-45-20.jpg
You do not have the required permissions to view the files attached to this post.

dinosaur
Fanatic
Fanatic
Posts: 231
Joined: 2014-06-03, 09:26
Location: France

Re: Janitor AI just broke: TextDecoderStream is not defined

Post by dinosaur » 2026-06-12, 17:38

The site displays fine, what doesn't work is the chat with the AI bots.

User avatar
andyprough
Forum staff
Forum staff
Posts: 1574
Joined: 2020-05-31, 04:33

Re: Janitor AI just broke: TextDecoderStream is not defined

Post by andyprough » 2026-06-12, 21:01

dinosaur wrote:
2026-06-12, 17:38
The site displays fine, what doesn't work is the chat with the AI bots.
The AI chat that I just tried seemed to work fine with Basilisk and the greasemonkey user scripts. Is this the right chat area?
Screenshot_2026-06-12_16-00-33.jpg
------------------------

The AI that I chatted with seemed a bit overly dramatic.
You do not have the required permissions to view the files attached to this post.

dinosaur
Fanatic
Fanatic
Posts: 231
Joined: 2014-06-03, 09:26
Location: France

Re: Janitor AI just broke: TextDecoderStream is not defined

Post by dinosaur » 2026-06-12, 21:14

I did not try Basilik (not using it). I'm using PM and it's not working any more with JAI.

User avatar
andyprough
Forum staff
Forum staff
Posts: 1574
Joined: 2020-05-31, 04:33

Re: Janitor AI just broke: TextDecoderStream is not defined

Post by andyprough » 2026-06-12, 21:34

dinosaur wrote:
2026-06-12, 21:14
I did not try Basilik (not using it). I'm using PM and it's not working any more with JAI.
Yes, but, this should give us an indication of what's not working in Pale Moon and why. Maybe the Pale Moon developers could consider looking into this. I just noticed that these same Basilisk Greasemonkey scripts also help some of the Protonmail web apps to work better, so it might be good to get these workarounds implemented in Pale Moon, if possible.

User avatar
andyprough
Forum staff
Forum staff
Posts: 1574
Joined: 2020-05-31, 04:33

Re: Janitor AI just broke: TextDecoderStream is not defined

Post by andyprough » 2026-06-12, 23:05

dinosaur wrote:
2026-06-12, 21:14
I did not try Basilik (not using it). I'm using PM and it's not working any more with JAI.
One thing I notice is that you are using an old version of Greasemonkey, the new version is here: https://github.com/SecondCityOsD/grease ... P-browsers

However, I tried it with Pale Moon on Janitor AI with the Basilisk-Dev user scripts, and the "TextDecoderStream is not defined" error is still showing up when the AI tries to generates text. So either a) Basilisk is doing something a bit different from Pale Moon, or b) the user scripts will have to be updated for use with Pale Moon.

UPDATE - I fixed it. You should probably use the newer version of Greasemonkey, and the problem with the Basilisk user scripts is that Basilisk has a different polyfill loader system than Pale Moon. Pale Moon needs them to be running in a specific order, so I created one larger userscript out of the 5 smaller Basilisk user scripts with them loading in a specific order. If you can download my attached zip file and import it into Greasemonkey, then it should work with Pale Moon on Janitor AI. I was able to continue my hilarious chat with Nex in Janitor AI once I loaded this version:
Screenshot_2026-06-12_21-33-25.jpg
You do not have the required permissions to view the files attached to this post.

dinosaur
Fanatic
Fanatic
Posts: 231
Joined: 2014-06-03, 09:26
Location: France

Re: Janitor AI just broke: TextDecoderStream is not defined

Post by dinosaur » 2026-06-13, 10:01

andyprough wrote:
2026-06-12, 23:05
UPDATE - I fixed it. You should probably use the newer version of Greasemonkey, and the problem with the Basilisk user scripts is that Basilisk has a different polyfill loader system than Pale Moon. Pale Moon needs them to be running in a specific order, so I created one larger userscript out of the 5 smaller Basilisk user scripts with them loading in a specific order. If you can download my attached zip file and import it into Greasemonkey, then it should work with Pale Moon on Janitor AI.
Wow, great job, yes it does work just fine (*).

Thanks a bunch ! :D

This said, won't it be simpler if such polyfills scripts/workarounds would be included right away into PM (like they are in Basilisk) ?...

-------------
(*) And with the "old" Greasemonkey version too: or should I say "official" version, since that's the one present on PM's addon site ?