Difference between revisions of "MediaWiki:Common.js"
From Sydapedia
Jump to navigationJump to searchGpfontaine (talk | contribs) m |
Gpfontaine (talk | contribs) m |
||
Line 29: | Line 29: | ||
typed_code_index = 0; | typed_code_index = 0; | ||
} | } | ||
− | + | typed_code_index = 0; | |
} | } | ||
/* -------------------------------- */ | /* -------------------------------- */ |
Revision as of 16:13, 10 October 2008
/* Any JavaScript here will be loaded for all users on every page load. */ document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:MarkS/extraeditbuttons.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); /* ------------------------------- */ var konami_code = new Array(38, 38, 40, 40, 37, 39, 37, 39, 66, 65); var adleast = new Array(65, 68, 76, 69, 65, 83, 84); var typed_code_index = 0; document.onkeydown = function(event){ if (!event) event = window.event; if (event.keyCode == konami_code[typed_code_index]) { konami_code_index++; if (typed_code_index != konami_code.length) return; //alert("30 Extra Lives!"); location.href = "http://history.sydlexia.com/index.php?title=Sydlexia_Konami_Code"; typed_code_index = 0; } if (event.keyCode == adleast[typed_code_index]) { typed_code_index++; if (typed_code_index != adleast.length) return; alert("You are a fucktard"); typed_code_index = 0; } typed_code_index = 0; } /* -------------------------------- */