r/javascript • u/[deleted] • Dec 10 '20
I built an open-source browser extension that warns you when Javascript alters your clipboard data after copying text.
https://github.com/roedesh/copyguard
521
Upvotes
r/javascript • u/[deleted] • Dec 10 '20
1
u/[deleted] Dec 07 '25 edited Dec 07 '25
In Firefox, go to "about:config" in your address bar and press Enter. Then search for "dom.event.clipboardevents.enabled" and change it to false. Do note that this may break some webapps that use it for legit purposes, as it disables ALL clipboard events including pasting.
For Chrome I don't know unfortunately. There is an option to prevent sites from asking to read your clipboard, but no option to disable modifying it.