Ask me anything!

Have a question you always wanted to ask Moonchild but never did? Now's your chance!
From 2026-03-08 to 2026-03-15 I'll be open to any question by the community, after which I'll provide answers.

Go here to participate: https://forum.palemoon.org/viewtopic.php?f=66&t=33222

"olympic" site https://www.atmmilano.it/ blank

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.
Lucio Chiappetti
Keeps coming back
Keeps coming back
Posts: 897
Joined: 2014-09-01, 15:11
Location: Milan Italy

"olympic" site https://www.atmmilano.it/ blank

Post by Lucio Chiappetti » 2026-01-29, 10:39

For totally unknown reasons the Milan publlic transport agency (ATM https://www.atm.it/it/Pagine/default.aspx, working) has decided to put the information on the transport service for the coming winter Olympics on a different site https://www.atmmilano.it (azure box in the right of the main site)

The laytter in Pale Moon comes out with a totally blank page, with a single console error

Code: Select all

Timestamp: 29/01/26 11:29:11
Error: Error: Invariant: Expected document.currentScript to be a <script> element. Received null instead. This is a bug in Next.js.
Source File: undefined
Line: 1
Curiously enough, this happens if I click on the azure box in the main ATM italian site. If I switch the main site to English and click on the corresponding azure box this goes to https://www.atmmilano.it/en, which is working in Pale Moon !!
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)

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

Re: "olympic" site https://www.atmmilano.it/ blank

Post by adoxa » 2026-01-29, 23:29

Modify HTTP Response filter (updating one I did previously; there's also a few other sites that could use it; an alternative is a Greasemonkey script).

Code: Select all

[["/gab\\.com|www\\.atmmilano\\.it/",["/\\.js$/",["let e=document.currentScript","return \"\""]]]]

Lucio Chiappetti
Keeps coming back
Keeps coming back
Posts: 897
Joined: 2014-09-01, 15:11
Location: Milan Italy

Re: "olympic" site https://www.atmmilano.it/ blank

Post by Lucio Chiappetti » 2026-01-30, 11:52

Thanks, although I won't need to consult the site often (and I could do using the english one). BTW I reported it to their webmaster contact.
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)