Created
May 21, 2018 10:33
-
-
Save GWuk/b885ec79260d53c1210a50d73940b7d4 to your computer and use it in GitHub Desktop.
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
// 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