MediaWiki:Common.js

window.LockOldBlogs = { expiryDays: 30, expiryMessage: "This blog is an archive, so there's no need to comment.", nonexpiryCategory: "Blog Does Not Expire", }; importArticles({   type: "script",    articles: [        "w:c:dev:LockOldBlogs/code.js"    ] }); importScriptPage('AjaxBatchDelete/code.js', 'dev'); //TAGS window.UserTagsJS = { modules: {}, tags: { // group: { associated tag data } cofound: { u:'Co-Founder' } } }; //USERS ARE COFOUNDERS UserTagsJS.modules.custom = { 'Manga Maniac': ['cofound'], 'Bond em7': ['cofound'], 'Head of Ravenclaw': ['inactive', 'cofound'], 'Hayward67': ['founder'] }; UserTagsJS.modules.inactive = { days: 30, // inactive is 30 days namespaces: [0], zeroIsInactive: true // 0 article edits = inactive }; UserTagsJS.modules.metafilter = { 'chatmoderator': ['rollback'], // Remove "Prefect" tag from Rollbacks 'inactive': ['bot'], // Remove "inactive" tag from bots 'sysop': ['bot'], // Remove "Admin" tag from bots 'sysop': ['bureaucrat'], // Remove "sysop" tag from crats 'sysop': ['inactive'], // Remove "sysop" tag from inactive admins }; UserTagsJS.modules.mwGroups = ['bureaucrat', 'sysop', 'bot', 'bot-global', 'rollback', 'bannedfromchat']; importArticle({type:'script', article:'w:c:dev:UserTags/code.js'});

//AJAX ajaxPages = ["Special:RecentChanges", "Special:WikiActivity", "Special:Watchlist","Special:Log","Dumbledore's Army Role-Play Wiki:Requests for Permissions","Special:UserRights","Special:Contributions"]; AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; importScriptPage('AjaxRC/code.js', 'dev'); //AWB var CheckList = ["Bryans1008", "Head of Ravenclaw", "Head of Ravenclaw Bot", "BachLynn23"]; importScriptPage('User:Joeytje50/AWBload.js', 'dev')

/* Any JavaScript here will be loaded for all users on every page load. */

// Add CANCEL Button for new RTE importScript('MediaWiki:Wikia.js/cancelButton.js'); // END Add CANCEL Button for new RTE

/* Announcement */ $('#WikiaArticle').prepend(' ');

importScriptPage('ShowHide/code.js', 'dev');

/** Archive edit tab disabling ************************************* * Disables the edit tab on old forum topic pages to stop new people bumping old topics. * Page can still be edited by going via the edit tab on the history etc, or by * typing the edit address manually. * By Spang * Monaco support by Uberfuzzy * Oasis support by Uberfuzzy */ if(wgNamespaceNumber == 110) { function disableOldForumEdit { if( typeof( enableOldForumEdit ) != 'undefined' && enableOldForumEdit ) { return; }	if( !document.getElementById('old-forum-warning') ) { return; }	if( skin == 'oasis' ) {		$("#WikiaPageHeader .wikia-menu-button li a:first").html('Archived').removeAttr('href' ); $('#WikiaPageHeader .wikia-button').html('Archived').removeAttr('href'); return; }	if( !document.getElementById('ca-edit') ) { return; }	var editLink = null; if( skin == 'monaco' ) {		editLink = document.getElementById('ca-edit'); }	else if( skin == 'monobook' ) {		editLink = document.getElementById('ca-edit').firstChild; }	else {		return; }	editLink.removeAttribute('href', 0); editLink.removeAttribute('title', 0); editLink.style.color = 'gray'; editLink.innerHTML = 'Archived'; $('span.editsection-upper').remove; } addOnloadHook( disableOldForumEdit ); }

/* Replaces 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 replacement */