MediaWiki:Common.js
From Sydapedia
Revision as of 11:56, 24 July 2008 by Gpfontaine (talk | contribs)
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* 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 konami_code_index = 0;
document.onkeydown = function(event) {
if (!event) event = window.event;
if (event.keyCode == konami_code[konami_code_index]) {
konami_code_index++;
if (konami_code_index != konami_code.length)
return;
alert("30 Extra Lives!");
}
konami_code_index = 0;
}
/* -------------------------------- */