Skip to content

Instantly share code, notes, and snippets.

@mstifflin
Last active May 4, 2023 04:55
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mstifflin/a3119b9a92a946a20e9af0fe043a8600 to your computer and use it in GitHub Desktop.
Save mstifflin/a3119b9a92a946a20e9af0fe043a8600 to your computer and use it in GitHub Desktop.
Don't mess with paste
// 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