Skip to content

Instantly share code, notes, and snippets.

@josephwegner
Created February 11, 2014 21:20
Show Gist options
  • Save josephwegner/8944438 to your computer and use it in GitHub Desktop.
Save josephwegner/8944438 to your computer and use it in GitHub Desktop.
(function () {
var a = translated_warning_string;
var b = function (d) {
d = d || window.event;
var c = d.target || d.srcElement;
if (c.type == "password") {
if (confirm(a)) {
b = function () {}
} else {
c.value = "";
return false
}
}
};
if (typeof document.addEventListener != "undefined") {
document.addEventListener("keypress", b, true)
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment