MediaWiki:Common.js

///////////////////////////////////////////////////////////////////////// /***************** Anon Tags | Author — KockaAdmiralac *****************/ ///////////////////////////////////////////////////////////////////////// (function {   var $masthead = $('#UserProfileMasthead');    if (!$masthead.exists) {        return;    }    var $info = $masthead.find('.masthead-info hgroup'),        username = $info.find('h1').text;    if (mw.util.isIPv4Address(username) || mw.util.isIPv6Address(username)) {        var $tag = $info.find('.tag');        if ($tag.exists) {            var blocked = $tag.remove.text;            $info.append( $(' ', {'class': 'tag-container'}).append(                   $('', { href: mw.util.getUrl('Help:Blocking'), text: blocked, 'class': 'tag usergroup-blocked blocked-user' })               )            );        }    } });//End AT*/

///////////////////////////////////////////////////////////////////////// /****************************** User Tags ******************************/ ///////////////////////////////////////////////////////////////////////// /* Tag Creation */ window.UserTagsJS = { modules: {}, tags: { /** Global FANDOM Groups **/ staff: { link: 'Help:Staff' }, helper: { link: 'Help:Volunteers_and_Helpers#Helpers' }, vstf: { link: 'Help:VSTF' }, 'global-discussions-moderator': { link: 'Project:Global_Discussions_Moderator' }, voldev: { link: 'Help:Volunteer_Developers' }, vanguard: { link: 'Help:Vanguard' }, council: { link: 'Project:Council' }, authenticated: { link: 'Help:User_rights#Authenticated' }, 'bot-global': { link: 'Help:Bots' },

/** Fully Automated **/ autoconfirmed: { u: 'Verified', order: 925, link: 'Project:Tags' }, inactive: { order: 500, link: 'Project:Tags' }, newuser: { u: 'Newb', order: 950, link: 'Project:Tags' }, nonuser: { u: 'Non-User', order: 975, link: 'Project:Tags' }, notautoconfirmed: { u: 'Unverified', order: 1000, link: 'Project:Tags' },

/** Externally Dependent **/ blocked: { order: 100, link: 'Help:Blocking' }, 'check-user': { link: 'Help:CheckUser' }, bot: { order: 400, link: 'Project:Bots' }, rot: { u: 'Rogue Bot', order: 350, link: 'Project:Bots' }, bureaucrat: { u: 'Senior Admin', order: 475, link: 'Project:Staff' }, 'content-moderator': { u: 'Intern', order: 625, link: 'Project:Staff' }, threadmoderator: { u: 'Intern', order: 650, link: 'Project:Internships' }, chatmoderator: { u: 'Intern', order: 675, link: 'Project:Internships' }, rollback: { u: 'Code Admin', order: 600, link: 'Project:Staff' },

/** Semi-Internally Dependent **/ com: { u: 'Community Admin', order: 525, link: 'Project:Staff' }, mod: { u: 'Moderator', order: 550, link: 'Project:Staff' }, sen: { u: 'Sentinel', order: 575, link: 'Project:Staff' },

/** Internally Dependent **/ founder: { order: 450, link: 'Help:Founders' }, st: { u: 'Staff Trigger Error — See Ursuul', order: 200 }, fs: { u: 'Former Staff', order: 740, link: 'Project:Former_Staff' }, sa: { u: 'Staff Artist', order: 760, link: 'Project:Tags' }, em: { u: 'Editor of the Month', order: 720, link: 'Diepio_Wikia' }, vip: { u: 'VIP', order: 780, link: 'Project:Tags' }, mvp: { u: 'MVP', order: 800, link: 'w:c:eizen:Message_Wall:Eizen' }, hi: { u: 'On Hiatus', order: 750, link: 'Project:Tags' }, alt: { u: 'Tolerated Alt', order: 850, link: 'Project:Tags' }, ef: { u: 'Edit Farmer', order: 900, link: 'Project:Tags' } }, };//End TC*/

/* Functionality Modules */ UserTagsJS.modules.inactive = 7; UserTagsJS.modules.nonuser = true; UserTagsJS.modules.isblocked = true; UserTagsJS.modules.stopblocked = false; UserTagsJS.modules.autoconfirmed = true; UserTagsJS.modules.newuser = { days: 14, edits: 10, namespace: 0 }; UserTagsJS.modules.mwGroups = ['blocked', 'staff', 'helper', 'vstf', 'global-discussions-moderator', 'voldev', 'vanguard', 'council', 'authenticated', 'bot-global', 'bot', 'checkuser', 'founder', 'bureaucrat', 'sysop', 'content-moderator', 'threadmoderator', 'chatmoderator', 'rollback', 'autoconfirmed', 'bannedfromchat'];//End FM*/

/* Custom Tags */ UserTagsJS.modules.custom = { /** Staff Ranks **/ 'Banarama': ['fs', 'st', 'hi'],//Hiatus 'Captain Hayden': ['fs', 'st', 'vip'],//Discord Owner 'Diepmon': ['fs', 'st'], 'GellyPop': ['sa'],//ST Exempt 'Graviatar': ['fs', 'st', 'sa'], 'Nobellion': ['fs', 'st'], 'Tacocat247': ['fs', 'st'], 'Teamerz': ['fs', 'st'], 'The Tidal Wave': ['fs', 'st'], 'TheGoldenPatrik1': ['fs', 'st', 'vip'],//Romanian Sysop 'Ursuul': ['fs', 'st', 'vip'],//Admin on non-English Diep.io Wikias 'Utkar22': ['fs', 'st', 'vip'],//German Sysop 'Zathsu': ['fs', 'st'],

/** Bot tag fallbacks / tracking **/ 'Özün Oldun': ['alt'],//Ursuul’s bot 'Balrog Bot': ['alt'],//TheGoldenPatrik1’s bot 'BananaBot': ['alt'],//Banarama’s bot 'Percy Odair': ['alt'],//Utkar22’s bot 'Savaphoong': ['alt'],//Ursuul’s second bot

/** Former Staff **/ 'Akkaviv': ['fs'], 'AnsonXLGaming': ['fs'], 'Apentashot1274': ['fs'], 'Eizen': ['fs', 'mvp'],//Script developer 'FallenBooster': ['fs'], 'Friendly777': ['fs'], 'GreenPotato': ['fs'],//Ziga’s new name 'Gunpowder2830': ['fs'], 'II Finale II': ['fs'], 'Jimmy is back': ['fs'], 'Kurofox zero': ['fs'],//Kuro redfox’ new name 'MrMewshmallow': ['founder'],//FS exempt 'Puffyy': ['fs'], 'QUEEN AYSHA': ['fs'], 'Radium212': ['fs'], 'Robotguy39': ['fs'], 'Smgamermat77': ['fs'], 'SpookyGoul': ['fs'], 'TOTMGsRock': ['fs'], 'TropicalStormChapsteck': ['fs'], 'Type: Sparky': ['fs'],//Eaves’ new name 'Underslime': ['fs'], 'Wall-E421': ['fs'],//Guilmon1’s new name 'Zombie jotuc': ['fs'],

/** Miscellaneous VIPs **/ 'Colouratura': ['vip'],

/** Youtuber VIPs **/ 'Adasba': ['vip'], 'Gabidou99': ['vip'],

/** Foreign Language Diep.io VIPs **/ 'PerlaSweety8': ['vip'],//Spanish Founder 'PolarSalvaje': ['vip'],//Spanish Bureaucrat 'Andresini05': ['vip'],//Spanish Disc Mod | Portuguese Sysop 'The0warrier': ['vip'],//Chinese Founder 'Zollo757347': ['vip'],//Chinese Bureaucrat '123YA': ['vip'],//Chinese Sysop | Japanese Sysop 'AC0xRPFS001': ['vip'],//Chinese Sysop 'Парашик': ['vip'],//Russian Founder 'Just Litoprobka': ['vip'],//Russian Bureaucrat 'Whert': ['vip'],//Russian Sysop 'DelfikPlatinum': ['vip'],//Russian Sysop 'Poland Soma': ['vip'],//Polish Founder 'Desz22': ['vip'],//Polish Sysop 'DeVito77': ['vip'],//Polish Sysop 'CreatorMan2006': ['vip'],//French Founder 'Lesongviga': ['vip'],//Vietnamese Founder 'Hoàng Giáo Sư': ['vip'],//Vietnamese Bureaucrat 'Vũ Khánh Linh': ['vip'],//Vietnamese Sysop 'C00KIEB0YY': ['vip'],//Turkish Founder 'MoonTR': ['vip'],//Turkish Sysop 'DorKDandazx': ['vip'],//Portuguese Founder 'JK55556': ['vip'],//German Founder 'Ultimately': ['vip'],//Swedish Founder 'MrCat1234': ['vip'],//Korean Founder 'RubberDuckie3': ['fs', 'vip'],//Japanese Founder 'Mors123': ['vip'],//Italian Founder 'Khitrish Mapping': ['vip'],//Romanian Sysop 'Mother Of Ships': ['fs', 'vip'],//Hungarian Founder

/** Edit Farmers **/ 'El armadillo': ['ef'], 'OMG IS 2.1 OUT OMG OMG OMG OMG 1337 6969': ['ef'], 'Viper002': ['ef'],

/** Tolerated Alt Flagging **/ 'The Archprophet': ['alt'],//Alt of Zathsu 'Dr. Lacus': ['alt'],//Alt of Zathsu 'Miss Lovey Dove': ['alt'],//Alt of AFF 'A Fallen Fighter': ['alt'],//Alt of AFF 'KnightKazuma The PROTECTOR+': ['alt'],//Alt of KnightKazuma 'PinkSheep1': ['alt'],//Alt of UberAnson 'PurpleShep1': ['alt'],//Alt of UberAnson 'Test Dummy Anson': ['alt'],//Alt of UberAnson 'SuperAnson': ['alt'],//Alt of UberAnson 'UltraAnson': ['alt'],//Alt of UberAnson 'UberAnson': ['alt'],//Alt of UberAnson 'Broken Mechanics': ['alt'],//Alt of Smgamermat77 'HydroFluoric Acid': ['alt'],//Alt of Smgamermat77 'GameSpy': ['alt'],//Alt of Smgamermat77 'Swagnaros': ['alt'],//Alt of Smgamermat77 'Smgamermat77 Shadow 1': ['alt'],//Alt of Smgamermat77 'Smgamermat77 Shadow 2': ['alt'],//Alt of Smgamermat77 'Swagmaster': ['alt'],//Alt of Smgamermat77 'Transforming Eevee Ban Test': ['alt'],//Alt of TE   'Word of the Mass': ['alt'],//Alt of MOS 'Father Of Ships': ['alt'],//Alt of MOS 'Dramione.io': ['alt'],//Alt of MLD 'ChatHunter': ['alt'],//Alt of Zombie jotuc 'Jimmy YT': ['alt'],//Alt of Jimmy is back 'Stuffystuff109': ['alt'],//Alt of TOTMGsRock 'Microsoft Edge1': ['alt'],//Alt of GunnerTeam 'I Nub - Sss': ['alt'],//Alt of INoobz 'FlippyCatFan': ['alt'],//Alt of NecroTheTank 'Maliciousdik3k': ['alt'],//Alt of 3kyboour 'Drapy': ['alt'],//Alt of 3kyboour 'DrapNumber3000': ['alt'],//Alt of 3kyboour 'GniKnoceRartlU': ['alt'],//Alt of UltraReconKing 'HexiClanYT': ['alt'],//Alt of SergeantSmasher 'Level 125': ['alt'],//Alt of Btd456Creeper '101 alt im a peace alt': ['alt'],//Alt of 101cooler 'MineTurtle1234': ['alt'],//Alt of 101cooler 'Epic101daWin': ['alt'],//Alt of 101cooler 'Epicness125': ['alt'],//Alt of 101cooler 'AdaptableTank': ['alt'],//Alt of SergeantSmasher 'LordScytheX': ['alt'],//Alt of Kuiled 'Zixuan1': ['alt'],//Alt of Zixuan2 'Megalodon4224': ['alt'],//Alt of Meg 'Sniperman22': ['alt'],//Alt of Meg 'Necrodracorex': ['alt'],//Alt of Meg 'Da Clorax': ['alt'],//Alt of Meg 'SodAlgBot': ['alt'],//Alt of Meg 'A bundle of C4': ['alt'],//Alt of Meg 'Megonps4chatnoworkhlp': ['alt'],//Alt of Meg 'ChatNoWorkOnPs4It\'sMeg': ['alt'],//Alt of Meg 'READTHENAMESOfTheseAltsAlready': ['alt'],//Alt of Meg 'XDeathDoctor': ['alt'],//Alt of Meg 'Father Of Ship': ['alt'],//Alt of MOS 'Roboguy39': ['alt'],//Alt of Robotguy39 'Robotear39': ['alt'],//Alt of Robotguy39 'Robogirl39': ['alt'],//Alt of Robotguy39 'Roboflame39': ['alt'],//Alt of Robotguy39 'Roboscope39': ['alt'],//Alt of Robotguy39 'Robodrool39': ['alt'],//Alt of Robotguy39 'Plot Line Board': ['alt'],//Alt of Robotguy39 'Diep.imheretoo': ['alt'],//Alt of Diep.iownu 'Lil\' Miss Raricow': ['alt'],//Alt of Colouratura 'NegaSlime': ['alt'],//Alt of Underslime 'Oo1Alt': ['alt'],//Alt of Oo1 'Unununtrium': ['alt'],//Alt of Aufmerksam 'Discussions': ['alt'],//Alt of Aufmerksam 'Intredistrict': ['alt'],//Alt of Aufmerksam 'Enpanzran': ['alt'],//Alt of Aufmerksam 'TradeManganese25': ['alt'],//Alt of AM Waves 'BattleDroid56568': ['alt'],//Alt of Awesome Evildor };//End CT*/

/* Meta Filter */ UserTagsJS.modules.metafilter = { /** Fully Automated **/ inactive: ['blocked', 'staff', 'helper', 'vstf', 'global-discussions-moderator', 'voldev', 'vanguard', 'council', 'authenticated', 'bot-global', 'bot', 'founder', 'bureaucrat', 'mvp', 'em', 'alt', 'ef', 'newuser', 'notautoconfirmed', 'nonuser', 'hi'], autoconfirmed: ['blocked', 'staff', 'helper', 'vstf', 'global-discussions-moderator', 'voldev', 'vanguard', 'council', 'authenticated', 'bot-global', 'bot', 'founder', 'st', 'fs', 'sa', 'vip', 'mvp', 'alt', 'ef', 'em', 'threadmoderator', 'chatmoderator', 'rollback', 'nonuser', 'newuser', 'inactive', 'sysop'], newuser: ['blocked', 'staff', 'helper', 'vstf', 'global-discussions-moderator', 'voldev', 'vanguard', 'council', 'authenticated', 'bot-global', 'bot', 'founder', 'fs', 'vip', 'mvp', 'alt', 'ef', 'nonuser', 'notautoconfirmed', 'rollback', 'chatmoderator', 'threadmoderator', 'sysop'], nonuser: ['blocked', 'staff', 'helper', 'vstf', 'global-discussions-moderator', 'voldev', 'vanguard', 'council', 'authenticated', 'bot-global', 'bot', 'founder', 'vip', 'mvp', 'alt', 'ef', 'notautoconfirmed', 'threadmoderator', 'sysop'], notautoconfirmed: ['blocked', 'staff', 'helper', 'vstf', 'global-discussions-moderator', 'voldev', 'vanguard', 'council', 'authenticated', 'bot-global', 'bot', 'vip', 'mvp', 'alt', 'ef', 'sysop'],

/** Externally Dependent **/ bot: ['staff', 'helper', 'vstf', 'bot-global', 'founder', 'st', 'fs', 'vip', 'mvp', 'alt'], bureaucrat: ['hi'], sysop: ['blocked', 'sysop'], 'content-moderator': ['blocked', 'bot', 'hi'], threadmoderator: ['blocked', 'bot', 'hi', 'content-moderator'], chatmoderator: ['blocked', 'bot', 'hi', 'threadmoderator', 'sysop'],//Sole-sysop bug fix rollback: ['blocked', 'bot', 'bureaucrat', 'hi'], blocked: ['bureaucrat'],

/** Semi-Internally Dependent **/ com: ['blocked', 'bureaucrat', 'hi'], mod: ['blocked', 'bureaucrat', 'com', 'hi'], sen: ['blocked', 'bureaucrat', 'com', 'hi'],

/** Internally Dependent **/ founder: ['blocked'], st: ['blocked', 'st'], fs: ['blocked', 'bureaucrat', 'sysop', 'content-moderator', 'threadmoderator', 'chatmoderator', 'rollback'], sa: ['blocked'], em: ['blocked'], vip: ['blocked', 'bureaucrat', 'sysop', 'content-moderator', 'threadmoderator', 'chatmoderator', 'rollback', 'em'], mvp: ['blocked'], hi: ['blocked'], alt: ['blocked', 'bot'], ef: ['blocked'] };//End MF*/

/* Implode */ UserTagsJS.modules.implode = { 'rot': ['blocked', 'bot'], 'com': ['st', 'content-moderator'], 'mod': ['st', 'threadmoderator'], 'sen': ['st', 'chatmoderator'] };//End Implode*/

///////////////////////////////////////////////////////////////////////// /************************ Import Configurations ************************/ ///////////////////////////////////////////////////////////////////////// /* 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, extraNamespaces: [ {           namespace: 2, patterns: [ '/Talk' ] }   ] };//End SC*/

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

/* Lock Forums */ window.LockForums = { disableOn: ["29793"],//Admins may use this field to unlock specific threads if necessary. expiryDays: 60, expiryMessage: "This thread hasn’t been commented on for  days. The discussion is over — there is no need to comment.", warningDays: 30, warningMessage: "This thread is now  days old. 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*/

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

/* Disabled Bot Message Walls Exempt */ window.DisableBotMessageWalls = { exceptions: ['Ursuul', 'Zathsu', 'Banarama', 'TheGoldenPatrik1', 'The Tidal Wave', 'Captain Hayden', 'Tacocat247', 'Graviatar', 'Diepmon', 'Utkar22', 'Nobellion'] };//End DBMWE*/

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

/* Preloaded Template Location */ window.customPreloadTemplate = "MediaWiki:Custom-Preloaded";//End PTL*/

/* Reorder SUG */ function ShowUserGroups_sorter(a, b) { var PredeterminedOrder = { 'staff':                      -100, 'util':                        -99, 'restricted-login':            -98, 'restricted-login-auto':       -97, 'restricted-login-exempt':     -96, 'devboxpanel':                 -95, 'translator':                  -94, 'content-reviewer':            -93, 'lookupuser':                  -92, 'lookupcontribs':              -91, 'helper':                      -80, 'vstf':                        -70, 'global-discussions-moderator': -60, 'voldev':                      -50, 'vanguard':                    -40, 'council':                     -30, 'authenticated':               -20, 'fandom-editor':               -10, 'bot-global':                    0, 'bot':                          10, 'codeadmin':                    20, 'checkuser':                    30, 'bureaucrat':                   40, 'sysop':                        50, 'content-moderator':            60, 'threadmoderator':              70, 'chatmoderator':                80, 'rollback':                     90, 'poweruser':                   110, 'autoconfirmed':               120 };   var sortA = typeof PredeterminedOrder[a] === "number" ? PredeterminedOrder[a] : 100;   var sortB = typeof PredeterminedOrder[b] === "number" ? PredeterminedOrder[b] : 100;   return sortA - sortB; }//End RSUG*/

///////////////////////////////////////////////////////////////////////// /******************************* Imports *******************************/ ///////////////////////////////////////////////////////////////////////// /* Universal Imports */ importArticles({   type: 'script',    articles: [        'u:tes:Common.js/DiscussionsLinks.js'    ] });//End UI*/

/* Page-specific Imports */ if (mw.config.get('wgTitle') == "Rights Log" && mw.config.get('wgNamespaceNumber') == 4) { importArticles(       {            type: 'style',            articles: [                'MediaWiki:Log.css'            ]        },        {            type: 'script',            articles: [                'u:dev:UserRightsRecord/code.js'            ]        }    ); }//End PSI*/