doctolib.de renders a blank 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.
User avatar
nia_netbsd
New to the forum
New to the forum
Posts: 2
Joined: 2024-08-08, 13:27

doctolib.de renders a blank page

Post by nia_netbsd » 2025-10-03, 17:04

https://doctolib.de is the site used by most doctor's practices in germany for appointment booking. Unfortunately it's a horrible bloated single-page web application. The JavaScript is packed and obfuscated.

Web console shows the following output:

Code: Select all

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)
Unsatisfied version 1.2.0 from doctolib of shared singleton module @doctolib/native-bridge-web (required =1.0.0)  
rum-datadog-3d7351b814b6e35f93d5.js:2:274063
Unsatisfied version 1.2.0 from doctolib of shared singleton module @doctolib/native-bridge-web (required =1.0.0)  
patient-desktop-bf0e791f19d31233779d.js:1:27264
TypeError: Intl.ListFormat is not a constructor[Learn More]  
61705-e792dbb0d76a88410d00.js:2:5282
Disabling the content security policy does not work. Disabling adblocker has no effect. Disabling JavaScript results in the page being blanker (white instead of a pale blue colour).

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2482
Joined: 2018-05-05, 13:29

Re: doctolib.de renders a blank page

Post by vannilla » 2025-10-03, 23:16

Intl.ListFormat, more localization stuff.
I'm all for ways to localize stuff properly, but at the same time this service is offered only in Germany and they can do without.
Unfortunately, it's likely another case of "supply chain incompatibility" wherein the website developers can't do anything because the error happens deep inside a third-party dependency.

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

Re: doctolib.de renders a blank page

Post by adoxa » 2025-10-04, 00:52

Here's a Modify HTTP Response filter to work around it.

Code: Select all

[["assets.doctolib.de",["/\\d{5}-.*\\.js$/",["/.\\.format\\((.*?)\\)\\)\\)\\)/g","$1))).join(\", \")","/new Intl\\.ListFormat\\(\"en-US\",\\{type:\"conjunction\"\\}\\)/g","null"]]]]

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

Re: doctolib.de renders a blank page

Post by Zorba » 2025-10-04, 07:32

Thanks for the Modify HTTP Response filter. How do I add that line when I've already got one for another site?

User avatar
nia_netbsd
New to the forum
New to the forum
Posts: 2
Joined: 2024-08-08, 13:27

Re: doctolib.de renders a blank page

Post by nia_netbsd » 2025-10-04, 08:39

Thanks for the filter.
Zorba wrote:
2025-10-04, 07:32
Thanks for the Modify HTTP Response filter. How do I add that line when I've already got one for another site?
I think you click on the "Launch Editor" button in the extension's settings.

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

Re: doctolib.de renders a blank page

Post by Zorba » 2025-10-04, 09:39

Yes but how do you add the complete line? I'm getting this: ('Add' can't add the complete line of code)
You do not have the required permissions to view the files attached to this post.

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

Re: doctolib.de renders a blank page

Post by adoxa » 2025-10-04, 11:40

Zorba wrote:
2025-10-04, 07:32
Thanks for the Modify HTTP Response filter. How do I add that line when I've already got one for another site?
Go to the end of the current filter, delete the ], add a ,, copy the new filter without the first [.

Falna
Astronaut
Astronaut
Posts: 535
Joined: 2015-08-23, 17:56
Location: UK / France

Re: doctolib.de renders a blank page

Post by Falna » 2025-10-04, 12:10

vannilla wrote:
2025-10-03, 23:16
Intl.ListFormat, more localization stuff.
I'm all for ways to localize stuff properly, but at the same time this service is offered only in Germany
...and France (https://www.doctolib.fr/) & Itlay (https://www.doctolib.it/)

Forked extensions :
● Add-ons Inspector ● Auto Text Link ● Copy As Plain Text ● Copy Hyperlink Text ● FireFTP button replacement ● gSearch Bar ● Navigation Bar Enhancer ● New Tab Links ● Number Tabs ● Print Preview Button and Keyboard Shortcut 2 ● Scrollbar Search Marker ● Simple Marker ● Tabs To Portfolio ● Update Alert ● Web Developer's Toolbox ● Zap Anything

Hint: If you expect a reply to your PM, allow replies...

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

Re: doctolib.de renders a blank page

Post by Zorba » 2025-10-05, 07:07

adoxa wrote:
2025-10-04, 11:40
Zorba wrote:
2025-10-04, 07:32
Thanks for the Modify HTTP Response filter. How do I add that line when I've already got one for another site?
Go to the end of the current filter, delete the ], add a ,, copy the new filter without the first [.
Did that and restarted PM, it now reads
[["www.diy.com",["/search/",[".pipeThrough(new TextEncoderStream())",""]],["/chunk.*\\.js$/",["/\\.pipeThrough\\(.*?\\(\\)\\)/g",""]]],["assets.doctolib.de",["/\\d{5}-.*\\.js$/",["/.\\.format\\((.*?)\\)\\)\\)\\)/g","$1))).join(\", \")","/new Intl\\.ListFormat\\(\"en-US\",\\{type:\"conjunction\"\\}\\)/g","null"]]]]

Still getting a blank page from the site...

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

Re: doctolib.de renders a blank page

Post by adoxa » 2025-10-05, 07:34

Manually editing the filter disables it, you must explicitly enable again.

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

Re: doctolib.de renders a blank page

Post by Zorba » 2025-10-05, 07:38

Ah ok thanks, it works now.