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";//End SS*/

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

/* FindAndReplace */ window.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 = 1000; WHAMDelay = 250; window.massEditConfig = { editInterval: 500 };//End MEC*/

/* Code Quick Links */ window.customCodeQuickLinks = { replaceAllDefaultLinks: true, linkSet: { siteFiles: [ {               name: "JSPages", href: "/wiki/Special:JSPages" },           {                name: "ImportJS", href: "/wiki/MediaWiki:ImportJS" },           {                name: "Common.js", href: "/wiki/MediaWiki:Common.js" },           {                name: "Common.css", href: "/wiki/MediaWiki:Common.css" },           {                name: "Wikia.js", href: "/wiki/MediaWiki:Wikia.js" },           {                name: "Wikia.css", href: "/wiki/MediaWiki:Wikia.css" },           {                name: "Chat.js", href: "/wiki/MediaWiki:Chat.js" },           {                name: "Chat.css", href: "/wiki/MediaWiki:Chat.css" },           {                name: "S:WF", href: "/wiki/Special:WikiFeatures" },           {                name: "S:AI", href: "/wiki/Special:AllInfoboxes" },           {                name: "S:I/NPI", href: "/wiki/Special:Insights/nonportableinfoboxes" },           {                name: "Themes.css", href: "/wiki/MediaWiki:Themes.css" }       ],        userFiles: [ {               name: "Global.js", href: "//community.wikia.com/wiki/Special:MyPage/global.js" },           {                name: "Global.css", href: "//community.wikia.com/wiki/Special:MyPage/global.css" },           {                name: "Common.js", href: "/wiki/Special:MyPage/common.js" },           {                name: "Common.css", href: "/wiki/Special:MyPage/common.css" },           {                name: "Wikia.js", href: "/wiki/Special:MyPage/wikia.js" },           {                name: "Wikia.css", href: "/wiki/Special:MyPage/wikia.css" },           {                name: "Chat.js", href: "/wiki/Special:MyPage/chat.js" },           {                name: "Chat.css", href: "/wiki/Special:MyPage/chat.css" },           {                name: "Sandbox", href: "/wiki/Special:Mypage/Sandbox" },           {                name: "Showcase", href: "/wiki/Special:Mypage/Showcase" },           {                name: "Tags", href: "//community.wikia.com/wiki/Help:Infoboxes/Tags" },           {                name: "Properties", href: "//portability.wikia.com/wiki/User:Ursuul/properties.css" },       ]    } };//End CQL*/

///////////////////////////////////////////////////////////////////////// /******************************* Imports *******************************/ ///////////////////////////////////////////////////////////////////////// /* Universal 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: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 UI*/

/* Wiki-specific imports */ var whichWiki = mw.config.get('wgCityId');

if (['193260', '65099'].indexOf(whichWiki) !== -1) { importArticle({       type: 'style',        article: 'u:dev:MediaWiki:FANSUN.css'    }, {        type: 'script',        article: 'u:dev:FANSUN.js'    }); }//End WSI*/