Copy Page URL on Alt+C with Top Center Toast

Copies the current page URL with Alt+C

Autore
WissX
Installazioni giornaliere
0
Installazioni totali
0
Valutazione
0 0 0
Versione
1.1
Creato il
04/04/2025
Aggiornato il
04/04/2025
Dimensione
1,75 KB
Licenza
MIT
Applica a
Tutti i siti

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).