MediaWiki:Common.js: Difference between revisions
From Katawa Shoujo Wiki
imported>Schiffy |
imported>Schiffy Didn't really need that part. |
||
Line 18: | Line 18: | ||
// </syntax> | // </syntax> | ||
/* Add UTC clock above articles */ | /* Add UTC clock above articles */ |
Revision as of 03:45, 26 June 2013
/* Any JavaScript here will be loaded for all users on every page load. */ /* Auto Refresh */ AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity"]; importScriptPage('AjaxRC/code.js', 'dev'); /* Collapsible */ importScriptPage('ShowHide/code.js', 'dev'); // <syntax type="javascript"> /** Toggles the display of elements on a page Author/contact: Austin Che http://openwetware.org/wiki/User:Austin_J._Che See http://openwetware.org/wiki/OpenWetWare:Toggle for examples and documentation */ // </syntax> /* Add UTC clock above articles */ importScript('MediaWiki:Common.js/displayTimer.js'); /* Replaces {{Visitor}} with the name of the user browsing the page. Requires copying Template:USERNAME. */ function UserNameReplace() { if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return; $("span.insertusername").html(wgUserName); } addOnloadHook(UserNameReplace); /* End of the {{Visitor}} replacement */ /* Link to Game Download */ $('ul.tools li:first-child').after('<li><a href="http://katawa-shoujo.com/download.php">Download Katawa Shoujo</a></li>');