cheatcode.js Just a late night hack. Usage like so:
var c = new CheatCode();
c.register("drizzydrake", function(){
console.log("6!x");
});
c.register("ArrowLeftArrowRightArrowLeft", function(){
// do something cool, or waste the user's time
console.log("you probably have work to do")
});
//TODO:
- add a timeout option. currently you can wait until the heat death of the universe to type the last letter and it'll still work
Yeah! Sorry for the vague readme. Some sites hide easter eggs by having the user type a secret code into the site before revealing them. For example there are konami code websites which only do something when a specific keystroke is entered onto the site. cheatcode.js makes creating those types of easter eggs easier.