MediaWiki:Common.js

/*Custom User Tags*/ window.UserTagsJS = { modules: {}, tags: { gatekeeper: { u: 'The Gatekeeper', order: 100 }, founder: { u: 'The Merlin', order: 100 }, 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 = 14; 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'/*, 'firstreward'*/] };

/*Filter Modules*/

UserTagsJS.modules.metafilter = { bureaucrat: ['founder', 'hiatus'], sysop: ['bureaucrat' ,'blocked'], 'content-moderator': ['sysop', 'bureaucrat', 'founder', 'hiatus', 'blocked'], threadmoderator: ['content-moderator', 'sysop', 'bureaucrat', 'hiatus'], chatmoderator: ['headdominator', 'sysop', 'bureaucrat', 'threadmoderator', 'content-moderator', 'hiatus', 'blocked'], rollback: ['sysop', 'bureaucrat', 'chatmoderator', 'threadmoderator', 'content-moderator', 'hiatus'], autoconfirmed: ['sysop', 'bureaucrat', 'threadmoderator', 'chatmoderator', 'rollback', 'content-moderator' ], formerstaff: ['chatmoderator', 'rollback', 'threadmoderator', 'content-moderator', 'sysop', 'bureaucrat', 'blocked'], fourthreward: ['blocked'], thirdreward: ['fourthreward', 'blocked'], secondreward: ['thirdreward', 'fourthreward', 'blocked'], firstreward: ['secondreward', 'thirdreward', 'fourthreward', 'blocked'], };

UserTagsJS.modules.userfilter = { 'AVoraciousReader': ['inactive', 'blocked', 'sysop'], 'Ursuul': ['inactive', 'blocked', 'sysop'] };

/*Message Wall User Tags*/ window.MessageWallUserTags = { tagColor: '#228B22', txtSize: '12px', glow: true, glowSize: '20px', glowColor: '#228B22', users: { 'Founder Guy': 'Founder', 'Ursuul': 'Wizard', 'AVoraciousReader': 'Wizard', 'Özün_Oldun': 'Terminator' } }; 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');	} });