-
-
Save ishan-marikar/6c5e52ca45ffed28fd7fd3eb3c92429b to your computer and use it in GitHub Desktop.
Don't fuck with paste
This file contains hidden or 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
// Open up the console and paste this in to prevent sites | |
// from blocking your pastes into password fields | |
// This allows you to continue using your password manager | |
// without it being a giant PITA. | |
var allowPaste = function(e){ | |
e.stopImmediatePropagation(); | |
return true; | |
}; | |
document.addEventListener('paste', allowPaste, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment