www.diy.com search empty page

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.
Zorba
Apollo supporter
Apollo supporter
Posts: 41
Joined: 2018-04-29, 08:43

www.diy.com search empty page

Post by Zorba » 2025-08-02, 12:10

https://www.diy.com/search?term=plastic+wrap

Some page content briefly, then empty page.

Output from the Toolkit Error Console:

Error: ReferenceError: TextEncoderStream is not defined
Source: https://www.diy.com/search?term=plastic+wrap

User avatar
adoxa
Astronaut
Astronaut
Posts: 619
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: www.diy.com search empty page

Post by adoxa » 2025-08-03, 06:42

Here's a Modify HTTP Response filter to fix it.

Code: Select all

[["www.diy.com",["/search/",[".pipeThrough(new TextEncoderStream())",""]],["/chunk.*\\.js$/",["/\\.pipeThrough\\(.*?\\(\\)\\)/g",""]]]]

Zorba
Apollo supporter
Apollo supporter
Posts: 41
Joined: 2018-04-29, 08:43

Re: www.diy.com search empty page

Post by Zorba » 2025-08-08, 16:28

Thanks, that works! Hope there won't be too many sites like that as it is cumbersome to add a workaround in each case...

User avatar
Moonchild
Project founder
Project founder
Posts: 39120
Joined: 2011-08-28, 17:27
Location: Sweden

Re: www.diy.com search empty page

Post by Moonchild » 2025-08-08, 17:34

We're always workjing on improving web compatibility, but some APIs are just horrendous and shouldn't actually be part of a web browser (the streams API is a good example) but once they are adopted, webmasters will insist on trying to use them because "new and shiny". The best our small team can do is be reactive in what is given priority. "transform streams" is at best tangentially related to normal web traffic (it belongs more in data processing software) and really shouldn't be used for search results pages, but hey-ho it's what we have here.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite