Copy Page URL on Alt+C with Top Center Toast

Copies the current page URL with Alt+C

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
WissX
日安装量
0
总安装量
0
评分
0 0 0
版本
1.1
创建于
2025-04-04
更新于
2025-04-04
大小
1.8 KB
许可证
MIT
适用于
所有网站

Adds an Alt+C Keyboard Shortcut to Copy the Current Page URL with a Top-Center Toast Feedback.

This Tampermonkey/Greasemonkey userscript injects a keydown event listener that triggers when Alt+C is pressed. Upon activation, the script retrieves the current window.location.href and utilizes the navigator.clipboard.writeText() API to copy it to the clipboard. A dynamically created div element is styled and displayed as a temporary toast notification at the top center of the viewport to provide user feedback on the copy status (success or failure).