Skip to content

Instantly share code, notes, and snippets.

@gleuch
Created May 20, 2009 02:17
Show Gist options
  • Save gleuch/114567 to your computer and use it in GitHub Desktop.
Save gleuch/114567 to your computer and use it in GitHub Desktop.
// adapted from jquery.com
// Hehe.
if ( window.addEventListener ) {
var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65";
window.addEventListener("keydown", function(e){
kkeys.push( e.keyCode );
if ( kkeys.toString().indexOf( konami ) >= 0 ) {
// Just replace www.google.com w/ whatever
window.location = "http://www.google.com";
}
}, true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment