Skip to content

Instantly share code, notes, and snippets.

@disinfeqt
Created May 11, 2012 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save disinfeqt/2661094 to your computer and use it in GitHub Desktop.
Save disinfeqt/2661094 to your computer and use it in GitHub Desktop.
No input[type=password]
!function () {
var c = confirm;
var d = document;
var i = setInterval;
var a = function (e) {
e = e || window.event;
var t = e.target || e.srcElement;
if (t.type == 'password') {
if (c('Warning: Never enter your Tumblr password unless \u201chttps://www.tumblr.com/login\u201d\x0ais the address in your web browser.\x0a\x0aYou should also see a green \u201cTumblr, Inc.\u201d identification in the address bar.\x0a\x0aSpammers and other bad guys use fake forms to steal passwords.\x0a\x0aTumblr will never ask you to log in from a user\u2019s blog.\x0a\x0aAre you absolutely sure you want to continue?')) {
a = function () {};
} else {
t.value = "";
return false;
}
}
};
i(function () {
d.addEventListener('keypress', a, false)
}, 0);
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment