Seems to me you could just use mousetrap.js and get the added bonus of a solid key capture library.<p><a href="https://craig.is/killing/mice" rel="nofollow">https://craig.is/killing/mice</a>
I did the same thing (but with jQuery) around 5 years ago; <a href="https://github.com/jbrooksuk/jQuery-Contra" rel="nofollow">https://github.com/jbrooksuk/jQuery-Contra</a><p>I'm pretty sure that it's in need of an update...
Does anyone here have experience using easter eggs as a social traffic-driving tool?<p>We have a client with a great product (well respected in their field) and one of our developers spent a weekend voluntarily building a very cool easter egg for their site. I think posting the easter egg somewhere relevant to their user base (like a topical subreddit) might be an interesting "campaign" to drive new users to the site.<p>Has anyone done this before?
There's another lightweight version to do this here: <a href="https://github.com/mckamey/konami-js" rel="nofollow">https://github.com/mckamey/konami-js</a><p>This includes a minified version resulting in a <1 kb addition to code: <a href="https://github.com/FlorianBezagu/Konamiz/blob/master/konamiz.min.js" rel="nofollow">https://github.com/FlorianBezagu/Konamiz/blob/master/konamiz...</a><p>Also worth considering is konami-js (<a href="https://github.com/snaptortoise/konami-js/blob/master/konami.js" rel="nofollow">https://github.com/snaptortoise/konami-js/blob/master/konami...</a>), which treats cases different such as if running from iphone if not wishing to change to the standard code.
Quite similar to cheet.js (sic):<p><a href="https://namuol.github.io/cheet.js/" rel="nofollow">https://namuol.github.io/cheet.js/</a><p>There's is a little more feature rich, but 2x as many characters minified (appro. 3K for cheet.js Vs 1.5K for Egg.js) which does matter for an Easter Egg in my opinion (as it should be as close to "free" as possible).