Konami code on Facebook
Friday 8 May 2009 - Filed under General + Internet
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;}}
2009-05-08 » mark