Disable Web Share API on Bahn.de

Restores the text pop-up on travel connections for easy copy&paste. Technically overrides navigator.share to prevent native share dialog. Restricted to Bahn.de sites.

La data de 18-02-2025. Vezi ultima versiune.

Autor
weaker
Rating-uri
0 0 0
Versiune
0.1
Creat
18-02-2025
Actualizat
18-02-2025
Size
704 Bytes
Licență
MIT
Se aplică pe

In the past, one could get a text-based pop-up for travel connections from which copying was easy. On Web Share-API-aware browsers, the OS (Windows!) forces you to handle the information with e.g. an e-mail client. This makes it clumsy to copy the text information. This restores the text pop-up for easy copy&paste (as currently on Firefox). Technically, it overrides navigator.share to prevent the native share dialog. This script is restricted to Bahn.de sites to reduce possibility to interfere unintentionally. May have side effects, be warned!