MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ /* Include Global Anime-Common.js Information */ importScriptURI('http://anime.wikia.com/index.php?title=MediaWiki:Anime-Common.js&action=raw&ctype=text/javascript&dontcountme=s&templates=expand'); // BEGINNING: JavaScript for placing the fair use rationale template inside the summary box on Special:Upload. Code by "wikipedia:User:Pinky49", created and coded specifically for Duty & Valour. function FairUseRationale { if((wgPageName == 'Special:Upload' || wgPageName == 'Special:MultipleUpload') && document.getElementById('wpDestFile').value == '') { document.getElementById('wpUploadDescription').value = ''; } } addOnloadHook(FairUseRationale); // ****** END: JavaScript for Special:Upload ****** /* 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'); /* Add UTC clock above articles */ importScript('MediaWiki:Common.js/displayTimer.js'); /* Signature Reminder */ importArticles({	type: 'script',	articles: [		// ...		'w:c:dev:SignatureCheck/code.js',		// ...	] }); /* Countdown */ importArticles({   type: "script",    articles: [        "w:c:dev:Countdown/code.js"    ] }); importArticles({   type: 'script',    articles: [        // ...        'w:c:dev:ReferencePopups/code.js',        // ...    ] }); /***User Tags***/ window.UserTagsJS = { modules: {}, tags: { // group: { associated tag data } Snow: 'Baby Bun' } }; //Custom UserTagsJS.modules.custom = { 'SnowYue': ['Snow'], }; importArticle({type:'script', article:'w:c:dev:UserTags/code.js'});