Janitor AI just broke: TextDecoderStream is not defined Topic is solved
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:
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:
- Clear any current output
- Navigate or refresh the page in question
- Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
-
dinosaur
- Fanatic

- Posts: 231
- Joined: 2014-06-03, 09:26
- Location: France
Janitor AI just broke: TextDecoderStream is not defined
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).
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).
-
andyprough
- Forum staff

- Posts: 1574
- Joined: 2020-05-31, 04:33
Re: Janitor AI just broke: TextDecoderStream is not defined
Is Pale Moon missing TextDecoderStream and/or ReadableStream.pipeThrough support?
-
dinosaur
- Fanatic

- Posts: 231
- Joined: 2014-06-03, 09:26
- Location: France
Re: Janitor AI just broke: TextDecoderStream is not defined
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).andyprough wrote: ↑2026-06-12, 02:02Is Pale Moon missing TextDecoderStream and/or ReadableStream.pipeThrough support?
-
andyprough
- Forum staff

- Posts: 1574
- Joined: 2020-05-31, 04:33
Re: Janitor AI just broke: TextDecoderStream is not defined
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: -----dinosaur wrote: ↑2026-06-12, 09:41Dunno, 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).
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.
You do not have the required permissions to view the files attached to this post.
-
dinosaur
- Fanatic

- Posts: 231
- Joined: 2014-06-03, 09:26
- Location: France
Re: Janitor AI just broke: TextDecoderStream is not defined
The site displays fine, what doesn't work is the chat with the AI bots.
-
andyprough
- Forum staff

- Posts: 1574
- Joined: 2020-05-31, 04:33
Re: Janitor AI just broke: TextDecoderStream is not defined
The AI chat that I just tried seemed to work fine with Basilisk and the greasemonkey user scripts. Is this the right chat area? ------------------------
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

- Posts: 231
- Joined: 2014-06-03, 09:26
- Location: France
Re: Janitor AI just broke: TextDecoderStream is not defined
I did not try Basilik (not using it). I'm using PM and it's not working any more with JAI.
-
andyprough
- Forum staff

- Posts: 1574
- Joined: 2020-05-31, 04:33
Re: Janitor AI just broke: TextDecoderStream is not defined
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.
-
andyprough
- Forum staff

- Posts: 1574
- Joined: 2020-05-31, 04:33
Re: Janitor AI just broke: TextDecoderStream is not defined
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:
You do not have the required permissions to view the files attached to this post.
-
dinosaur
- Fanatic

- Posts: 231
- Joined: 2014-06-03, 09:26
- Location: France
Re: Janitor AI just broke: TextDecoderStream is not defined
Wow, great job, yes it does work just fine (*).andyprough wrote: ↑2026-06-12, 23:05UPDATE - 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.
Thanks a bunch !
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 ?