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.

作者
weaker
今日安裝
0
安裝總數
0
評價
0 0 0
版本
0.1
建立日期
2025-02-18
更新日期
2025-02-18
尺寸
704 位元組
授權條款
MIT
腳本執行於

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!