User:Ursuul/global.js

///////////////////////////////////////////////////////////////////////// /************************* Functions: *************************/ ///////////////////////////////////////////////////////////////////////// /* Variable(s) */ var config = mw.config.get([   'wgCityId',    'wgContentLanguage' ]);

var user, talk; switch (config.wgContentLanguage) { case 'es': user = '', talk = ''; break; case 'zh': case 'zh-tw': case 'zh-hk': user = '', talk = ''; break; default: user = '', talk = ''; }//End V*/

/* Redundant User Talk links */ require(['jquery', 'wikia.window'], function (jQuery, wk) {   if (wk.wgCityId === '177') {        return;    }    jQuery.nirvana.getJson( 'WikiFeaturesSpecialController', 'index' ).done(function ($data) { if (           !$data.error &&            $data.features[4].name === 'wgEnableWallExt' &&            $data.features[4].enabled === true        ) { mw.util.addCSS(               '.ns-2 .wds-dropdown__content #ca-talk {' +                    'display: none;' +                '}'            ); }   }); });//End RUTL*/

/* 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*/

$('.featured-video__wrapper').remove;

///////////////////////////////////////////////////////////////////////// /************************ Import Configurations ************************/ ///////////////////////////////////////////////////////////////////////// /* General */ window.anchoredRollbackBot                 = true; window.GlobalChatJS_useServiceWorker       = true; window.SeeMoreActivityButtonRC             = true; window.nullEditDelay                       = 1000; window.batchDeleteDelay                    = 250; window.massCategorizationDelay             = 250; window.WHAMDelay                           = 250; window.massProtectDelay                    = 500; window.massRenameDelay                     = 500; window.massRenameSummary                   = 'Automatic Process'; window.mobileText                          = 'Switch to Mercury'; window.cvCaseSensitive                     = 'checked'; window.railWAM = { load: true }; window.massEditConfig = { editInterval: 500 }; window.announcementsIgnore = { option: 'opt-in-all', exceptWikiIds: [ 1136286//Overlord ] }; window.AutoCreateUserPagesConfig = { content: { 2:    user, 3:    talk, 1202: talk },   summary:   'Creating Profile' };//End G*/

/* FastCreate */ window.QCButtons = [];

window.QCButtons.push({   label:     'S',    target:    'User:Ursuul/sig.css',    summary:   'Creating Signature',    content:   '',    placement: '.wds-community-header__wiki-buttons .wds-dropdown .wds-list' }, {    label:     'SGDM',    target:    'User:Ursuul/s.css',    summary:   'Creating Signature',    content:   ' Ursuul  Wall  GDM  Date     ', placement: '.wds-community-header__wiki-buttons .wds-dropdown .wds-list' }, {   label:     'SVAN', target:   'User:Ursuul/s.css', summary:  'Creating Signature', content:  ' Ursuul  Talk  <span style="background-color:#000;background-image:-moz-linear-gradient(top,#444 35%,#000 65%);background-image:-webkit-gradient(linear,0% 0%,0% 100%,color-stop(35%,#444), color-stop(65%,#000));color:#FFF;border:.7px outset #FFF;border-bottom:2px outset #FFF;border-top:2px outset #FFF;"><span title="Vanguard" style="color:#FFF;font-weight:normal;font-family:Old Standard TT, Times New Roman, Lucida Bright, serif;text-shadow:none;padding:0 3px 0 3px;">Vanguard  <span class="mw-customtoggle-ursdate" title="  " style="cursor:pointer;border:2px outset #FFFFFF;border-left:0;border-top-right-radius:18px;border-bottom-right-radius:18px;-moz-border-radius-bottomright:18px;-moz-border-radius-topright:18px;background-color:#000;background-image:-moz-linear-gradient(top,#444 35%,#000 65%);background-image:-webkit-gradient(linear,0% 0%,0% 100%, color-stop(35%,#444),color-stop(65%,#000));color:#FFF;"><span style="color:#FFF;font-family:Old Standard TT, Times New Roman, Lucida Bright, serif;padding:0 2px 0 3px;">Date <span id="mw-customcollapsible-ursdate" class="mw-collapsible mw-collapsed" title=""><span style="color:#FFF;font-family:Old Standard TT, Times New Roman, Lucida Bright, serif;padding-right:2px;">    ', placement: '.wds-community-header__wiki-buttons .wds-dropdown .wds-list' });//End FC*/

/* Code Quick Links */ window.customCodeQuickLinks = { replaceAllDefaultLinks: true, linkSet: { siteFiles: [{ name: 'JSPages', href: '/wiki/Special:JSPages' }, {           name: 'ImportJS', href: '/wiki/MediaWiki:ImportJS' }, {           name: 'Themes.css', href: '/wiki/MediaWiki:Themes.css' }, {           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:AI', href: '/wiki/Special:AllInfoboxes' }, {           name: 'S:I/PP', href: '/wiki/Special:Insights/popularpages' }, {           name: 'S:I/NPI', href: '/wiki/Special:Insights/nonportableinfoboxes' }],       userFiles: [{ name: 'Global.js', href: '//community.wikia.com/wiki/Special:MyPage/global.js' }, {           name: 'ImportCSS', href: '//community.wikia.com/wiki/Special:MyPage/global.css' }, {           name: 'Global.css', href: '//community.wikia.com/wiki/Special:MyPage/g.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: 'Subpages', href: '/wiki/Special:PrefixIndex/User:Ursuul/' }, {           name: 'Sandbox', href: '/wiki/Special:Mypage/Sandbox' }, {           name: 'Properties', href: '//portability.wikia.com/wiki/User:Ursuul/properties.css?action=edit' }]   } };//End CQL*/

/* Global Nav Buttons */ window.globalNavButtons = [{ text:     'DW', url:      '//diepio.wikia.com/wiki/Project:Home', isMain:   true, whoIsMain: false, shortName: 'dw' }, {   text:      'Changelog', url:      '//rings-of-the-master.wikia.com/wiki/Project:NT/Changelog_News', isMain:   false, whoIsMain: 'dw', shortName: 'c' }, { text:     'Event', url:      '//rings-of-the-master.wikia.com/wiki/Project:NT/Wiki_Event_News', isMain:   false, whoIsMain: 'dw', shortName: 'e' }, { text:     'Policy', url:      '//rings-of-the-master.wikia.com/wiki/Project:NT/Wiki_Policy_News', isMain:   false, whoIsMain: 'dw', shortName: 'p' }, { text:     'Tech', url:      '//rings-of-the-master.wikia.com/wiki/Project:NT/Tech_News', isMain:   false, whoIsMain: 'dw', shortName: 't' }, { text:     'FANDOM', url:      '//rings-of-the-master.wikia.com/wiki/Project:NT/Fandom_News', isMain:   false, whoIsMain: 'dw', shortName: 'f' }, { text:     'Opinion', url:      '//rings-of-the-master.wikia.com/wiki/Project:NT/Opinion_Polls', isMain:   false, whoIsMain: 'dw', shortName: 'o' }, { text:     'Quantcast', url:      '//quantcast.com/diepio.wikia.com', isMain:   false, whoIsMain: 'dw', shortName: 'qcdw' }, {   text:      'DF', url:      '//dresdenfiles.wikia.com/wiki/Dresden_Files', isMain:   true, whoIsMain: false, shortName: 'df' }, {   text:      'RC', url:      '//dresdenfiles.wikia.com', isMain:   false, whoIsMain: 'df', shortName: 'rcdf' }, {   text:      'Quantcast', url:      '//quantcast.com/dresdenfiles.wikia.com', isMain:   false, whoIsMain: 'df', shortName: 'qcdf' }, {   text:      'DA', url:      '//dragonage.wikia.com/d/f', isMain:   true, whoIsMain: false, shortName: 'da' }, {   text:      '/d/g', url:      '//dragonage.wikia.com/d/g', isMain:   false, whoIsMain: 'da', shortName: 'dgda' }, {   text:      '/d/m', url:      '//dragonage.wikia.com/d/m', isMain:   false, whoIsMain: 'da', shortName: 'dmda' }, {   text:      '/d/reported', url:      '//dragonage.wikia.com/d/reported', isMain:   false, whoIsMain: 'da', shortName: 'drda' }, {   text:      'Quantcast', url:      '//quantcast.com/dragonage.wikia.com', isMain:   false, whoIsMain: 'da', shortName: 'qcda' }, {   text:      'SC', url:      '/wiki/Special:Contact/general', isMain:   true, whoIsMain: false, shortName: 'sc' }, {   text:      'S:C/bug', url:      '/wiki/Special:Contact/bug', isMain:   false, whoIsMain: 'sc', shortName: 'scb' }, {   text:      'S:C/feedback', url:      '/wiki/Special:Contact/feedback', isMain:   false, whoIsMain: 'sc', shortName: 'scf' }, {   text:      'S:C/bad-ad', url:      '/wiki/Special:Contact/bad-ad', isMain:   false, whoIsMain: 'sc', shortName: 'scba' }, {   text:      'S:C/close-wiki', url:      '/wiki/Special:Contact/close-wiki', isMain:   false, whoIsMain: 'sc', shortName: 'sccw' }, {   text:      'S:C/wiki-name-change', url:      '/wiki/Special:Contact/wiki-name-change', isMain:   false, whoIsMain: 'sc', shortName: 'scwnc' }, {   text:      'S:C/account-issue', url:      '/wiki/Special:Contact/account-issue', isMain:   false, whoIsMain: 'sc', shortName: 'scai' }, {   text:      'All', url:      '/wiki/Special:Contact', isMain:   false, whoIsMain: 'sc', shortName: 'scall' }, {   text:      'V', url:      '//community.wikia.com/wiki/Blog:FANDOM_Staff_Blog', isMain:   true, whoIsMain: false, shortName: 'v' }, { text:     'Rights', url:      '//community.wikia.com/wiki/Special:Log/rights', isMain:   false, whoIsMain: 'v', shortName: 'vrights' }, {   text:      'Global.css', url:      '//diepio.wikia.com/wiki/MediaWiki:Global.css?action=edit', isMain:   false, whoIsMain: 'v', shortName: 'vgcss' }, {   text:      'Highlight.css', url:      '//dev.wikia.com/wiki/MediaWiki:Highlight.css?action=history', isMain:   false, whoIsMain: 'v', shortName: 'vhcss' }, {   text:      'Council', url:      '//communitycouncil.wikia.com', isMain:   false, whoIsMain: 'v', shortName: 'council' }, {   text:      'Vanguard', url:      '//portability.wikia.com/wiki/Special:PortabilityDashboard', isMain:   false, whoIsMain: 'v', shortName: 'vanguard' }, {   text:      'GDM', url:      '//discussions.wikia.com', isMain:   false, whoIsMain: 'v', shortName: 'gdm' }, {   text:      'W', url:      '//wikia.slack.com', isMain:   true, whoIsMain: false, shortName: 'w' }, { text:     'Tokyo Ghoul', url:      '//tokyoghoul.wikia.com/wiki/Thread:307070', isMain:   false, whoIsMain: 'w', shortName: 'tg' }, {   text:      'ESB', url:      '//spongebob.wikia.com/wiki/Special:Insights/nonportableinfoboxes', isMain:   false, whoIsMain: 'w', shortName: 'esb' }, {   text:      'Pokémon', url:      '//pokemon.wikia.com/wiki/Special:Insights/nonportableinfoboxes', isMain:   false, whoIsMain: 'w', shortName: 'pm' }];//End GNB*/

///////////////////////////////////////////////////////////////////////// /******************************* Imports *******************************/ ///////////////////////////////////////////////////////////////////////// /* Universal Imports */ importArticles({   type: 'script',    articles: [        'u:dev:AjaxBatchDelete.js',        'u:dev:AjaxUndo/code.js',        'u:dev:AnchoredRollback/code.js',        'u:dev:AnnouncementsIgnore.js',        'u:dev:BlogLink/code.js',        'u:dev:CodeQuickLinks/code.js',        'u:dev:DisableInfoboxBuilder.js',        'u:dev:EditConflictAlert/code.js',        'u:dev:FastCreate.js',        'u:dev:FileLogs.js',        'u:dev:FindAndReplace/code.js',        'u:dev:GlobalChatJS.js',        'u:dev:GlobalNavButtons.js',        'u:dev:LinkToDiscussionsProfileIfTheyDontHaveLivePosts/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:MassRename/code.js',        'u:dev:MassRenameRevert/code.js',        'u:dev:MastheadGender/code.js',        'u:dev:MobileEditor.js', 'u:dev:MultipleFileDelete/code.js',//do not remove über script 'u:dev:NullEditButton/code.js', 'u:dev:PortableCSSPad/code.js', 'u:dev:ProtectionIcons.js', 'u:dev:RCStats.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:View Source/code.js', 'u:dev:VSTFReport.js', 'u:dev:WHAM/code.2.js', 'u:dev:WLHEditLinks/code.js', 'u:dev:WallGreetingButton/code.js', 'u:dev:Wikimarks/code.js', 'u:dev:WorkingMoreUsersCount.js', 'u:diepio:Gadget-WDSButtons.js', 'u:diepio:Miscellaneous.js', 'u:elderscrolls:Common.js/DiscussionsLinks.js', 'u:kocka:User:KockaAdmiralac/AutoCreateUserPages.javascript' ] });//End UI*/

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