User:Ursuul/global.js

///////////////////////////////////////////////////////////////////////// /****************************** Functions ******************************/ ///////////////////////////////////////////////////////////////////////// /* * @name:  Kill Infobox Builder * @author: Eizen * @source: https://community.wikia.com/wiki/User:Eizen/global.js */ if (mw.config.get("wgCanonicalSpecialPageName") === "InfoboxBuilder") { var $pageName = "Template:" + mw.config.get("wgPageName").split("/")[1] + "?action=edit&useeditor=source"; window.location.href = mw.config.get("wgArticlePath").replace("$1", $pageName); }//End KIB*/

/* 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, 'content-volunteer':           -40, 'vanguard':                    -30, 'council':                     -20, 'authenticated':               -10, 'fandom-editor':                 0, 'bot-global':                   10, 'bot':                         110, 'codeadmin':                   120, 'checkuser':                   130, 'bureaucrat':                  140, 'sysop':                       150, 'content-moderator':           160, 'threadmoderator':             170, 'chatmoderator':               180, 'rollback':                    190, 'autoconfirmed':               200 };   var sortA = typeof PredeterminedOrder[a] === "number" ? PredeterminedOrder[a] : 100;   var sortB = typeof PredeterminedOrder[b] === "number" ? PredeterminedOrder[b] : 100;   return sortA - sortB; }//End RSUG*/

///////////////////////////////////////////////////////////////////////// /************************ Import Configurations ************************/ ///////////////////////////////////////////////////////////////////////// /* SeeMoreActivity */ window.SeeMoreActivityButtonRC = true;//End SMA*/

/* Talk Notifications * window.talkWikis = ['diepio', 'zh.diepio', 'rings-of-the-master', 'chilly-and-the-gangs-random-stuff'];//End TN*/

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

/* WAM Rail */ window.railWAM = { load: true };//End WR*/

/* FindAndReplace */ var cvCaseSensitive = 'checked';//End FAR*/

/* Mass Effect Configs */ batchDeleteDelay = 10;//revert to 250 massCategorizationDelay = 250; massProtectDelay = 10;//revert to 250 massRedirectDelay = 500; massRenameDelay = 500; massRenameSummary = 'Automatic Process'; nullEditDelay = 10;//revert to 250 WHAMDelay = 250;//End MEC*/

///////////////////////////////////////////////////////////////////////// /******************************* Imports *******************************/ ///////////////////////////////////////////////////////////////////////// importArticles({   type: 'script',    articles: [        'u:community:User:TyA/AutoEditDropdown.js',        'u:dev:AjaxBatchDelete/code.2.js',        'u:dev:AjaxUndo/code.js',        'u:dev:AnchoredRollback/code.js',        'u:dev:AntiSoundcloud/code.js',        'u:dev:AutoEditPages/code.js',        'u:dev:BlankBlogBugfix/code.js',        'u:dev:BlogLink/code.js',        'u:dev:CodeQuickLinks/code.js',        'u:dev:EditConflictAlert/code.js',        'u:dev:FindAndReplace/code.js',        'u:dev:MarkBlocked.js',        'u:dev:MassCategorization/code.js',        'u:dev:MassEdit/code.js',        'u:dev:MassNullEdit/code.js',        'u:dev:MassProtect/code.js',        'u:dev:MassRedirect/code.1.js',        'u:dev:MassRename/code.js',        'u:dev:MassRenameRevert/code.js',        'u:dev:MastheadGender/code.js',        'u:dev:ModernBackToTopButton/code.js', 'u:dev:MultipleFileDelete/code.js',//do not remove über script 'u:dev:NullEditButton/code.js', 'u:dev:PortableCSSPad/code.js', 'u:dev:RedirectManagement/code.js', 'u:dev:ReferencePopups/code.js', 'u:dev:Rollback/code.js', 'u:dev:SearchSuggest/code.js', 'u:dev:SeeMoreActivityButton/code.js', 'u:dev:ShowUserGroups.js', 'u:dev:SkinSwitchButton/code.js', 'u:dev:Thread Inspection/code.js', 'u:dev:UnhideUserMasthead/code.js', //'u:dev:UserTalkNotifications/code.js', 'u:dev:VSTFReport.js', 'u:dev:WHAM/code.2.js', 'u:dev:WallGreetingButton/code.js', 'u:dev:Wikimarks/code.js', 'u:dev:WorkingMoreUsersCount.js', 'u:eizen:User:Eizen/AnonLookup.javascript', 'u:elderscrolls:Common.js/DiscussionsLinks.js' ] });//End*/