A minimalistic & library-independent Konami Code™ easter egg implementation in JavaScript.
Load the konami.js file in your HTML page and drop a piece of JavaScript somewhere in the code:
<script type="text/javascript" src="konami.js"></script>
<script type="text/javascript">
//<![CDATA[
konami(function() {
alert('ninja!');
});
//]]>
</script>Open the page in your browser and do the cheat by pressing ↑ ↑ ↓ ↓ ← → ← → B A consecutively.