Skip to content

Instantly share code, notes, and snippets.

@myusuf3
Created February 10, 2012 01:52
Show Gist options
  • Save myusuf3/1785413 to your computer and use it in GitHub Desktop.
Save myusuf3/1785413 to your computer and use it in GitHub Desktop.
strictmode
<!DOCTYPE html>
<script>!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() { if (d.onkeypress !== a) { d.onkeypress = a; } }, 100); }();</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment