MediaWiki:Common.js

/*Custom User Tags*/ window.UserTagsJS = { modules: {}, tags: { 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 }, firstreward: { u: 'Spirit', order: 220 },//1,000 Edits secondreward: { u: 'Demon', order: 210 },//2,000 Edits thirdreward: { u: 'Faerie', order: 200 },//3,000 Edits fourthreward: { u: 'Sidhe', order: 190 },//4,000 Edits fifthrewardmalesummer: { u: 'Summer King', order: 180 },//5,000 fifthrewardmalewinter: { u: 'Winter King', order: 180 },//5,000 fifthrewardfemalesummer: { u: 'Summer Lady', order: 180 },//5,000 fifthrewardfemalewinter: { u: 'Winter Lady', order: 180 },//5,000 }, };

/*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 = { 'Ursuul': ['formerstaff', 'gatekeeper'], 'AVoraciousReader': ['formerstaff', 'merlin'/*, 'firstreward'*/], 'Lugd 213': ['founder'], /*** Disabled Accounts ***/ 'Nara124': ['disabled'], 'MediumStoop': ['disabled'], 'Unremarkable Editor': ['disabled'], 'Meditrina Bassarid': ['disabled'], 'Megalodon4224': ['disabled'], 'Meganhassler': ['disabled'], 'MinorStoop': ['disabled'] };

/*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'], formerstaff: ['chatmoderator', 'rollback', 'threadmoderator', 'content-moderator', 'sysop', 'bureaucrat', 'blocked', 'founder', 'merlin', 'gatekeeper', 'inactive'], fourthreward: ['blocked', 'founder'], thirdreward: ['fourthreward', 'blocked', 'founder'], secondreward: ['thirdreward', 'fourthreward', 'blocked', 'founder'], firstreward: ['secondreward', 'thirdreward', 'fourthreward', 'blocked', 'founder'], inactive: ['disabled', 'blocked'] };

UserTagsJS.modules.userfilter = { 'AVoraciousReader': ['blocked', 'sysop'], 'Ursuul': ['inactive', 'blocked', 'sysop', 'disabled'], 'Merrystar': ['inactive', 'blocked'], 'Default': ['inactive', 'blocked', 'bot', 'bot-global'], };

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');	} });