Skip to content

Instantly share code, notes, and snippets.

@GWuk
Created May 21, 2018 10:33
Show Gist options
  • Save GWuk/b885ec79260d53c1210a50d73940b7d4 to your computer and use it in GitHub Desktop.
Save GWuk/b885ec79260d53c1210a50d73940b7d4 to your computer and use it in GitHub Desktop.
// JS script to remove nasty paste password blockers from password elements
//
// use https://mrcoles.com/bookmarklet/ to create bookmarklet from code
//
{
var inputs = document.querySelectorAll("input[type='password']");
for (var i=0; i<inputs.length; i++) {
inputs[i].removeAttribute('onkeydown');
inputs[i].removeAttribute('onpaste');
inputs[i].removeAttribute('oncopy');
inputs[i].removeAttribute('oncut');
inputs[i].removeAttribute('oncontextmenu');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment