Skip to content

Instantly share code, notes, and snippets.

@ishan-marikar
Forked from mstifflin/allow_paste.js
Created October 31, 2018 10:42
Show Gist options
  • Save ishan-marikar/6c5e52ca45ffed28fd7fd3eb3c92429b to your computer and use it in GitHub Desktop.
Save ishan-marikar/6c5e52ca45ffed28fd7fd3eb3c92429b to your computer and use it in GitHub Desktop.
Don't fuck 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 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