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.

目前为 2025-02-18 提交的版本。查看 最新版本

作者
weaker
评分
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!