Created
January 9, 2014 08:50
-
-
Save torholm/8331293 to your computer and use it in GitHub Desktop.
Stop annoying sites from inserting extra text into clipboard when copying
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.body.addEventListener("copy", function(ev) { ev.stopPropagation(); return false; }, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment