Created
May 11, 2012 17:16
-
-
Save disinfeqt/2661094 to your computer and use it in GitHub Desktop.
No input[type=password]
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
!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