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&smaxage=86400&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') && document.getElementById('wpDestFile').value == '') { document.getElementById('wpUploadDescription').value = ''; } } addOnloadHook(FairUseRationale); // ****** END: JavaScript for Special:Upload ******

/* Recent Changes Auto Refresh */ importScriptPage('AjaxRC/code.js', 'dev');

/* //////////////////////////////////////////////////////////////////// // Facebook box ////////////////////////////////////////////////////////////////////

function fBox { $('#fbox').append(' '); }

$(fBox);

importScriptPage('DupImageList/code.js', 'dev'); importScriptPage('ListAdmins/code.js', 'dev'); importArticles({	type: 'script',	articles: [		// ...		'w:c:dev:SignatureCheck/code.js',		// ...	] }); importArticles({	type:'script',	articles: [		// ...		'w:c:dev:UserTags/code.js',		// ...	] }); window.UserTagsJS = { modules: {}, tags: {} }; UserTagsJS.modules.inactive = 30; UserTagsJS.modules.newuser = true; UserTagsJS.modules.autoconfirmed = true; // NOTE: bannedfromchat displays in Oasis but is not a user-identity group so must be checked manually UserTagsJS.modules.mwGroups = ['bureaucrat', 'chatmoderator', 'patroller', 'rollback', 'sysop', 'bannedfromchat', 'bot', 'bot-global']; UserTagsJS.modules.metafilter = { sysop: ['bureaucrat', 'founder'], bureaucrat: ['founder'], chatmoderator: ['sysop', 'bureaucrat'] }; importArticle({type:'script', article:'w:c:dev:UserTags/code.js'}); importArticles({   type: 'script',    articles: [        'u:dev:SearchSuggest/code.js'    ] }); importArticles({   type: 'script',    articles: [        'w:c:dev:FixMultipleUpload/code.js'    ] }); importArticles({   type: 'script',    articles: [        'w:c:dev:AutoEditDropdown/code.js'    ] }); importArticles({   type: "script",    articles: [        "w:c:dev:LockOldBlogs/code.js"    ] }); importScriptPage( 'Standard_Edit_Summary/code.js', 'dev' );