🏠 Home 

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.


Install this script?
Author
weaker
Daily installs
0
Total installs
0
Ratings
0 0 0
Version
0.1
Created
2025-02-18
Updated
2025-02-18
Size
704 Bytes
License
MIT
Applies to

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!