Last active
May 4, 2023 04:55
-
-
Save mstifflin/a3119b9a92a946a20e9af0fe043a8600 to your computer and use it in GitHub Desktop.
Don't mess with paste
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
// 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 incredibly inconvenient. | |
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