Konami code on Facebook

Facebook makes a funny. First read about this here.

Summary: enter the Konami code (up up down down left right left right B A Enter) outside of a textbox, and you get lens flares with clicks and down/up keys. Interesting! Looking through the static javascript, you can see the easter egg code, pasted in here (yes, it’s gonna run off the page):

onloadRegister(function(){var secrets=[38,38,40,40,37,39,37,39,66,65,13],ii=0;function fn(evt){var kk=evt?evt.keyCode:event.keyCode;if(ii==-1){return;}else if(secrets[ii]==kk){++ii;if(ii==secrets.length){new AsyncRequest('/ajax/lensflare.php').setReadOnly(true).setMethod('GET').send();ii=-1;}}else if(ii){ii=0;}}

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>