MediaWiki:Common.js

//Begin Guide /* Signifies Window */ /** Signifies Module **/ /*** Signifies Module Section ***/ /*Null Section*/ //Notes OR Null Line //End Guide

/*Custom User Tags*/ window.UserTagsJS = { modules: {}, tags: { /*** Global Wikia Staff ***/ staff: { link: 'http://community.wikia.com/wiki/Community_Central:Staff' }, vstf: { link : 'http://community.wikia.com/wiki/VSTF' }, helper: { link: 'http://community.wikia.com/wiki/Help%3AHelper#Helpers' }, voldev: { link: 'http://community.wikia.com/wiki/User_blog:Grunny/Introducing_the_Volunteer_Developer_Program' }, vanguard: { link: 'http://community.wikia.com/wiki/Help%3AVanguard' }, /*** Other Global Groups ***/ council: { link: 'http://community.wikia.com/wiki/Help%3ACouncil' }, authenticated: { link: 'http://community.wikia.com/wiki/Help%3AUser_rights#Authenticated' }, 'bot-global': { link: 'http://community.wikia.com/wiki/Help:Bots' }, bot: { u: 'Bot', order: 100, link: 'http://community.wikia.com/wiki/Help:Bots' }, roguebot: { u: 'Rogue Bot', order: 100, link: 'http://community.wikia.com/wiki/Help:Bots' }, 'check-user': { link: 'http://community.wikia.com/wiki/Help:CheckUser' }, /*** Local Groups ***/ disabled: { u: 'Disabled Account', order: 100 }, inactivebureaucrat: { u: 'Inactive Bureaucrat', order: 100 }, gatekeeper: { u: 'The Gatekeeper', order: 100 }, merlin: { u: 'The Merlin', order: 100 }, founder: { u: 'Founder', order: 100, link: 'http://community.wikia.com/wiki/Help:Founders' }, bureaucrat: { u: 'Wizard', order: 110 }, sysop: { u: 'Sorcerer', order: 119 }, blocked: { u: 'Banned', order: 120 }, 'content-moderator': { u: 'Warden', order: 130 }, threadmoderator: { u: 'Discussion Mod', order: 140 }, chatmoderator: { u: 'Chat Mod', order: 150 }, rollback: { u: 'Rollback', order: 160 }, formerstaff: { u: 'Former Staff', order: 170 }, }, };

/*Miscellaneous Modules*/ UserTagsJS.modules.inactive = 30; UserTagsJS.modules.stopblocked = false; // Manually turned off rogue Module UserTagsJS.modules.newuser = false; UserTagsJS.modules.autoconfirmed = false; UserTagsJS.modules.mwGroups = ['bureaucrat', 'chatmoderator', 'patroller', 'rollback', 'sysop', 'contentmoderator', 'threadmoderator', 'bannedfromchat', 'bot', 'bot-global'];

/*Custom Tags*/

UserTagsJS.modules.custom = { /*** Current Staff ***/ 'Ursuul': ['formerstaff', 'gatekeeper'], 'AVoraciousReader': ['formerstaff', 'merlin'/*, 'firstreward'*/], /*** Former Staff ***/ 'Lugd 213': ['founder', 'formerstaff'], //Oldest 'Bacod253': ['formerstaff'], 'ElbeFluss': ['formerstaff'], 'MinorStoop': ['formerstaff', 'disabled'], //Double Category 'DresdenFilesReader': ['formerstaff', 'disabled'], //Double Category 'ImtheSteve': ['formerstaff'], 'Phil Boswell': ['formerstaff'], 'Priscellie': ['formerstaff'], //Latest /*** Disabled Accounts ***/ 'Nara124': ['disabled'], 'MediumStoop': ['disabled'], 'Unremarkable Editor': ['disabled'], 'Meditrina Bassarid': ['disabled'], 'Megalodon4224': ['disabled'], 'Meganhassler': ['disabled'], 'Yamaara': ['disabled'], 'Ngeb012': ['disabled'], 'ProperNoun': ['disabled'], 'Game widow': ['disabled'], 'Ngebendi': ['disabled'], 'Xxsammmsammmxx': ['disabled'], 'Norstrilia125': ['disabled'], 'AnUnknownEditor': ['disabled'], /*** Bot Tracking - Local Bots ***/ 'QATestsBot': ['bot'], 'Maintenance script': ['bot'],

/*** Bot Tracking - Global Bots ***/ 'FandomBot': ['bot-global'], 'Wikia': ['bot-global'], 'WikiaBot': ['bot-global'], 'Userpage Bot': ['bot-global'], /*** Staff That Act Like Bots ***/ 'DaNASCAT': ['bot'], 'QATestsStaff': ['bot'] };

/*Filter Modules*/

UserTagsJS.modules.metafilter = { merlin: ['inactive', 'inactivebureaucrat'], bureaucrat: ['founder', 'hiatus', 'merlin', 'gatekeeper', 'inactive', 'inactivebureaucrat'], sysop: ['bureaucrat' ,'blocked', 'founder', 'merlin', 'gatekeeper'], 'content-moderator': ['sysop', 'bureaucrat', 'founder', 'hiatus', 'blocked', 'merlin', 'gatekeeper'], threadmoderator: ['content-moderator', 'sysop', 'bureaucrat', 'hiatus', 'founder', 'merlin', 'gatekeeper'], chatmoderator: ['headdominator', 'sysop', 'bureaucrat', 'threadmoderator', 'content-moderator', 'hiatus', 'blocked', 'founder', 'merlin', 'gatekeeper'], rollback: ['sysop', 'bureaucrat', 'chatmoderator', 'threadmoderator', 'content-moderator', 'hiatus', 'founder', 'merlin', 'gatekeeper'], autoconfirmed: ['sysop', 'bureaucrat', 'threadmoderator', 'chatmoderator', 'rollback', 'content-moderator', 'founder', 'merlin', 'gatekeeper', 'staff', 'vstf', 'helper', 'voldev', 'vanguard', 'council', 'authenticated', 'bot-global'], notautoconfirmed: ['staff', 'vstf', 'helper', 'voldev', 'vanguard', 'council', 'authenticated', 'bot-global'], formerstaff: ['chatmoderator', 'rollback', 'threadmoderator', 'content-moderator', 'sysop', 'bureaucrat', 'blocked', 'founder', 'merlin', 'gatekeeper', 'inactive', 'disabled'], disabled: ['gatekeeper'], inactive: ['disabled', 'blocked', 'staff', 'vstf', 'helper', 'voldev', 'vanguard', 'council', 'authenticated', 'bot-global', 'bot'], bot: ['bot-global'], blocked: ['gatekeeper', 'merlin', 'bureaucrat', 'sysop', 'staff', 'vstf', 'helper', 'voldev', 'vanguard', 'bot-global'] };

UserTagsJS.modules.userfilter = { 'AVoraciousReader': ['blocked', 'sysop'], 'Ursuul': ['inactive', 'blocked', 'sysop', 'disabled'], /*** Wikia Staff ***/ 'Merrystar': ['inactive', 'blocked'], 'Sannse': ['inactive', 'blocked'], 'JoePlay': ['inactive', 'blocked'], 'Kirkburn': ['inactive', 'blocked'], /*** Councilors+ ***/ 'Kangaroopower': ['inactive'], 'Sulfur': ['inactive'], /*** Other ***/ 'XD1': ['inactive', 'blocked'], 'Lug d213': ['inactive', 'blocked'], 'DaNASCAT': ['inactive', 'blocked', 'bot'], //Technically a bot but eh

/*** Bots ***/ 'Default': ['inactive', 'blocked'], 'Userpage Bot': ['inactive', 'blocked'], 'Wikia': ['inactive', 'blocked'], 'WikiaBot': ['inactive', 'blocked'], 'QATestsStaff': ['inactive', 'blocked', 'bot'], 'QATestsBot': ['inactive', 'blocked'] };

UserTagsJS.modules.implode = { 'inactivebureaucrat': ['bureaucrat', 'inactive'] };

/*Message Wall User Tags*/ window.MessageWallUserTags = { tagColor: 'cyan', txtSize: '12px', glow: true, glowSize: '2px', glowColor: '#228B22', users: { 'Lugd 213': 'The Founder', 'Ursuul': 'The Gatekeeper', 'AVoraciousReader': 'The Merlin', 'Özün_Oldun': 'Heinrich Kemmler' } }; importArticles({   type: 'script',    articles: [        //other scripts,        'u:dev:MessageWallUserTags/code.js',        'u:dev:WallGreetingButton/code.js',        'u:dev:DisplayClock/code.js'    ] });

/*Move Thread Button Install*/ $(document).ready(function {	if ( mw.config.get("wgNamespaceNumber") == 1201 && $("#mw-content-text > .BreadCrumbs > a:first-of-type") .attr("href") .substr(0,(mw.config.get("wgServer") + "/wiki/Message_Wall:").length) == mw.config.get("wgServer") + "/wiki/Message_Wall:" ) { // this is a thread from a message wall		$(".message-main > .speech-bubble-message .buttons > nav > ul").append('Move to forum');	} });