MediaWiki:Common.js

/////////////////////////////////////////////////////////////////////////// /*************************************************************************/ /***************************** Miscellaneous *****************************/ /*************************************************************************/ /////////////////////////////////////////////////////////////////////////// /* Rail Priority *///For whenever we one day get a Wiki Discord $(function {   mw.hook('DiscordIntegrator.added').add(function { $('.DiscordIntegratorModule').appendTo('#WikiaRail'); }); });//End RP*/

/* Replaces with the name of the user browsing the page */ function UserNameReplace { if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return; $("span.insertusername").html(wgUserName); } addOnloadHook(UserNameReplace);//End replacement*/

/////////////////////////////////////////////////////////////////////////// /*************************************************************************/ /****************************** User Tags ********************************/ /*************************************************************************/ /////////////////////////////////////////////////////////////////////////// /* Tag Creation */ window.UserTagsJS = { modules: {}, tags: { /** Global Groups **/ staff: { link: 'http://community.wikia.com/wiki/Project:Staff' }, vstf: { link : 'http://community.wikia.com/wiki/Help:VSTF' }, helper: { link: 'http://community.wikia.com/wiki/Help:Volunteers_and_Helpers#Helpers' }, voldev: { link: 'http://dev.wikia.com/wiki/Volunteer_Developers' }, vanguard: { link: 'http://community.wikia.com/wiki/Help:Vanguard' },

/** Other Global Groups **/ council: { link: 'http://community.wikia.com/wiki/Help:Community_Council' }, authenticated: { link: 'http://community.wikia.com/wiki/Help:User_rights#Authenticated' }, 'bot-global': { link: 'http://community.wikia.com/wiki/Help:Bots' }, bot: { u: 'Overseer', order: 300, link: 'http://community.wikia.com/wiki/Help:Bots' }, roguebot: { u: 'Rogue Overseer', order: 300, link: 'http://community.wikia.com/wiki/Help:Bots' }, 'check-user': { link: 'http://community.wikia.com/wiki/Help:CheckUser' },

/** Local Groups **/ alt: { u: 'Alternate Account', order: 100 }, disabled: { u: 'Disabled Account', order: 100, link: 'http://community.wikia.com/wiki/Help:Closing_an_account' }, inactivebureaucrat: { u: 'Inactive Bureaucrat', order: 100, link: 'http://community.wikia.com/wiki/Help:User_rights#Bureaucrats' }, gatekeeper: { u: 'The Gatekeeper', order: 100, link: 'http://community.wikia.com/wiki/Help:User_rights#Bureaucrats' }, merlin: { u: 'The Merlin', order: 100, link: 'http://community.wikia.com/wiki/Help:User_rights#Bureaucrats' }, founder: { u: 'Founder', order: 100, link: 'http://community.wikia.com/wiki/Help:Founders' }, bureaucrat: { u: 'Bureaucrat', order: 110, link: 'http://community.wikia.com/wiki/Help:User_rights#Bureaucrats' }, sysop: { u: 'Admin', order: 119, link: 'http://community.wikia.com/wiki/Help:User_rights#Administrators' }, blocked: { u: 'Warlock', order: 120, link: 'http://community.wikia.com/wiki/Blocked' }, 'content-moderator': { u: 'Content Mod', order: 130, link: 'http://community.wikia.com/wiki/Help:User_rights#Content_Moderators' }, contentmoderator: { u: 'Content Mod', order: 130, link: 'http://community.wikia.com/wiki/Help:User_rights#Content_Moderators' }, //duplicate to fix bug threadmoderator: { u: 'Discussion Mod', order: 140, link: 'http://community.wikia.com/wiki/Help:User_rights#Discussions_Moderators' }, chatmoderator: { u: 'Chat Mod', order: 150, link: 'http://community.wikia.com/wiki/Help:User_rights#Chat_Moderators' }, rollback: { u: 'Practitioner', order: 160, link: 'http://community.wikia.com/wiki/Help:User_rights#Rollbacks' }, formerstaff: { u: 'Former Staff', order: 170 }, }, };//End TC*/

/* Functionality Modules */ UserTagsJS.modules.inactive = 30; UserTagsJS.modules.stopblocked = false; UserTagsJS.modules.newuser = false; UserTagsJS.modules.autoconfirmed = false; UserTagsJS.modules.mwGroups = ['bureaucrat', 'chatmoderator', 'patroller', 'rollback', 'sysop', 'content-moderator', 'contentmoderator', 'threadmoderator', 'bannedfromchat', 'bot', 'bot-global', 'founder'];//End FM*/

/* Custom Tags */ UserTagsJS.modules.custom = { /** Current Staff **/ 'Ursuul': ['formerstaff', 'gatekeeper'], 'AVoraciousReader': ['formerstaff', 'merlin'/*, 'firstreward'*/], /** Alts **/ 'Özün Oldun': ['alt'], /** Former Staff **/ 'Lugd 213': ['founder', 'formerstaff'], //Oldest 'Bacod253': ['formerstaff'], 'ElbeFluss': ['formerstaff'], 'MinorStoop': ['formerstaff', 'disabled'], //Double Category 'DresdenFilesReader': ['formerstaff', 'disabled'], //Double Category 'ImtheSteve': ['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'], 'UberAnson': ['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'] };//End CT*/

/* Meta Filter */ UserTagsJS.modules.metafilter = { merlin: ['inactive', 'inactivebureaucrat'], bureaucrat: ['founder', 'hiatus', 'merlin', 'gatekeeper', 'inactive', 'inactivebureaucrat', 'sysop', 'content-moderator', 'threadmoderator', 'chatmoderator', 'rollback', 'voldev', 'vstf', 'helper', 'staff'], sysop: ['blocked', 'founder', 'merlin', 'gatekeeper', 'voldev', 'vstf', 'helper', 'staff'], 'content-moderator': ['sysop', 'founder', 'hiatus', 'blocked', 'merlin', 'gatekeeper'], threadmoderator: ['content-moderator', 'sysop', 'hiatus', 'founder', 'merlin', 'gatekeeper'], chatmoderator: ['headdominator', 'sysop', 'bureaucrat', 'threadmoderator', 'content-moderator', 'hiatus', 'blocked', 'founder', 'merlin', 'gatekeeper', 'voldev', 'vstf', 'helper', 'staff'], 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'] };//End MF*/

/* User Filter */ 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'] };//End UF*/

/* Implode Module */ UserTagsJS.modules.implode = { 'inactivebureaucrat': ['bureaucrat', 'inactive'] };//End IM*/

/////////////////////////////////////////////////////////////////////////// /*************************************************************************/ /************************* Import Configurations *************************/ /*************************************************************************/ /////////////////////////////////////////////////////////////////////////// /* Banners */ window.BNnamespaces = [0, 1200, 1201, 2001, 2000, 14, 12, 2002]; window.BNusergroups = ['user']; window.BNcookieExpiration = 7; //End BN*/

/* Signature Check */ window.SignatureCheckJS = { preamble: 'There are a few potential problems with your edit:\n\n', epilogue: '\nAre you sure you want to post this anyway?', noSignature: 'It looks like you forgot to sign your post. Use \~\~\~\~ to sign your post so that we know who’s talking!\n', forumheader: false, checkSignature: true };//End SC*/

/* Lock Old Blogs */ window.LockOldBlogs = { expiryDays: 360, expiryMessage: 'This blog hasn’t been commented on for over a year. There is no need to comment.', //nonexpiryCategory: 'Weekly Updates' };//End LOB*/

/* Lock Forums */ window.LockForums = { //disableOn: ["12345", "67890"],//Admins may use this field to unlock specific threads if necessary. expiryDays: 360, expiryMessage: "This thread hasn’t been commented on for over a year. The discussion is over — there is no need to comment.", warningDays: 60, warningMessage: "This thread is now  days old. The discussion is over — please reply ONLY if a response is seriously needed.", ignoreDeletes: true, banners: true, expiryBannerMessage: "This topic has been unedited for  days. It is considered archived — the discussion is over. If you feel this thread needs additional information, contact an administrator so they may unlock it if necessary.", warningBannerMessage: "This topic has been unedited for  days. It is considered archived — the discussion is over. Do not add to it unless it really needs a response.", expiryBannerStyle: "stylesheet", warningBannerStyle: "stylesheet", warningPopup: true, warningPopupMessage: "By posting on an old thread you may be filling up the e-mail boxes of many people who are still following this topic. Are you sure you want to do this?", boxHeight: 50 };//End LF*/

/* Message Wall Tags */ window.MessageWallUserTags = { tagColor: '#DAA520', txtSize: '12px', glow: true, glowSize: '20px', glowColor: '#FFDF00', users: { 'Lugd 213': 'The Founder', 'AVoraciousReader': 'The Merlin', 'Özün_Oldun': 'Heinrich Kemmler' } };//End MWT*/

/* Skin Switch */ window.monoBookText = "Switch to Monobook"; window.oasisText = "Switch to Oasis"; window.mobileText = "Show Mobile View";//End SS*/

/* Ajax Refresh Configs */ window.ajaxSpecialPages = ["Recentchanges", "WikiActivity", "Watchlist", "Log", "Contributions", "Special:UncategorizedPages", "Special:AllPages"]; window.ajaxRefresh = 90000; window.AjaxRCRefreshText = 'Auto Refresh'; window.AjaxRCRefreshHoverText = 'Automatically refreshes the page'; //End ARC*/

/* Disabled Bot Message Walls Exempt */ window.DisableBotMessageWalls = { exceptions: ['Rappy 4187', 'WikiaBot'] };//End DBMWE*/

/* Reference Popups */ ((window.dev = window.dev || {}).ReferencePopups = dev.ReferencePopups || {}).lockdown = true;//End RP*/

/////////////////////////////////////////////////////////////////////////// /*************************************************************************/ /******************************** Imports ********************************/ /*************************************************************************/ /////////////////////////////////////////////////////////////////////////// /* Admin Tools */ if (mw.config.get("wgUserGroups").indexOf('sysop') > -1) { nukeDeleteReason = "Cleanup (Nuke Script)"; massRenameDelay = 1000; massRenameSummary = 'automated'; massRedirectDelay = 1000; massBlockDelay = 1000; importArticles({       type: 'script',        articles: [            'u:dev:Nuke/code.js',            'u:dev:MassRename/code.js',            'u:dev:MassRedirect/code.1.js',            'u:dev:MassCategorization/code.js',            'u:dev:MassProtect/code.js',            'u:dev:AnchoredRollback/code.js',            'u:dev:MassBlock/code.js',            'u:dev:MassRenameRevert/code.js',            'u:dev:AutoEditPages/code.js'        ]    }); }//End AT*/