User:Friendly Mountain12/global.js

/**Part 1: Import Configurations**/

window.AutoCreateUserPagesConfig = { content:{ 2:'',       3:false, 1202:false },   summary:'Userpage creation' };

window.SS = { skins: [ 'PseudoMonobook = u:dev:MediaWiki:PseudoMonobook.css', 'Modernization = u:dev:MediaWiki:FandomizedActivityFeed.css'] };

window.BackToTopModern = true;

window.fdButtons = [ {   summary: 'Requested by a user', label: 'Requested' }, {   summary:'Spam', label:'Spam' }, {   summary:'Vandalism', label:'Vandalism' }, {   summary:'Cleaning up blank page', label:'Blank page' } ];

window.MassEditConfig = { interval: 3500, placement: { element: 'toolbar', type: 'append' } };

window.AjaxSpecialPages; ('recentchanges', 'watchlist') window.AjaxIndicator = 'https://vignette.wikia.nocookie.net/central/images/a/a9/3D5388A4-57F5-45CD-A3B9-30B1EF504F6B.gif/revision/latest?cb=20200829025255'; window.AjaxRefresh = 20000;

window.announcementsIgnore = { option: 'opt-out-all' };

window.globalJSAlreadyLoaded = true;

/**Part 2: Script Imports**/ importArticles({   type:'script',    articles: [        'u:dev:MediaWiki:RailWAM/code.js',        'u:dev:MediaWiki:GlobalEditcount/code.js',        'u:dev:MediaWiki:AutoCreateUserPages.js',        'u:dev:MediaWiki:SkinSwitch.js',        'u:dev:MediaWiki:WHAM/code.2.js',        'u:dev:MediaWiki:PortableListUsers.js',        'u:dev:MediaWiki:ListAdmins/code.js',        'u:dev:MediaWiki:MastheadGender/code.js',       'u:dev:MediaWiki:ViewNotificationsUsers.js',       'u:dev:MediaWiki:QuickAccessToCSSAndJS/code.js',        'u:dev:MediaWiki:SOAPReport.js',        'u:dev:MediaWiki:EditConflictAlert/code.js',        'u:dev:MediaWiki:UserAccountAge/code2.js',        'u:dev:MediaWiki:PageCreator/code2.js',        'u:dev:MediaWiki:UserActivityTab/code.js',        'u:dev:MediaWiki:UserActivityLink.js',        'u:dev:ListUsers/code2.js',        'u:dev:MediaWiki:Matrix.js',        'u:dev:MediaWiki:ListSubpages.js', 'u:dev:MediaWiki:ListFiles/code.js', 'u:dev:MediaWiki:RedirectMaker/code.js', 'u:dev:MediaWiki:AjaxEdit.js', 'u:dev:MediaWiki:ShowUserGroups.js', 'u:dev:MediaWiki:PiniginsUserInfo/code.js', 'u:dev:MediaWiki:AjaxTemplate/code.js', 'u:dev:MediaWiki:BackToTopButton/code.js', 'u:dev:MediaWiki:MessageBlock/code.js', 'u:dev:MediaWiki:EditsShare.js', 'u:dev:MediaWiki:RecentChangesMultiple/code.2.js', 'u:dev:MediaWiki:ViewRemoved/code.js', 'u:dev:MediaWiki:FastDelete/code.js', 'u:dev:MediaWiki:MassEdit/code.js', 'u:dev:MediaWiki:CategoryQuickRemove.js', 'u:dev:MediaWiki:SourceEditButton.js', 'u:dev:MediaWiki:AddSectionButton/code.js', 'u:dev:MediaWiki:Translator/Translator.js', 'u:dev:MediaWiki:MoreDropdown/code.js', 'u:dev:MediaWiki:ProtectedHighlight/code.js', 'u:dev:MediaWiki:MastheadRightsBadge.js', 'u:dev:MediaWiki:SandboxTab/code.js', 'u:dev:MediaWiki:NullEditButton/code.js', 'u:dev:MediaWiki:FileUsageAuto-update/code.js', 'u:dev:MediaWiki:LinkPreview/code.js', 'u:dev:MediaWiki:EditUserTalkArchive.js', 'u:dev:MediaWiki:PowerDelete.js', 'u:dev:MediaWiki:AvatarLink.js', 'u:dev:MediaWiki:AjaxRC.js', 'u:dev:MediaWiki:AnnouncementsIgnore.js', 'u:dev:MediaWiki:DivEditor/code.js', 'u:dev:MediaWiki:QQX/code.js', 'u:dev:MediaWiki:WallGreeting.js', 'u:dev:MediaWiki:ThemeToggler.js', 'u:dev:MediaWiki:RestoreAddVideoButton.js' ] });

/**Because my Sandbox page has a different name - CC only**/ if (mw.config.get('wgCityId') == '177') window.dev = $.extend (true, window.dev, {   i18n: {        overrides: {            SandboxTab: {                'sandbox':'Testing page'            }        }    } });

/**Part 3: Custom links on profile dropdown**/

/***Guestbook***/ if (mw.config.get ('wgCityId') == '177') $('', {   text: 'Guestbook',    href: mw.util.getUrl('User:' + mw.config.get('wgUserName') + '/Guestbook'),    appendTo: $('body > div.global-navigation > div.global-navigation__bottom > div.wds-dropdown.wds-open-to-right.is-attached-to-bottom > div.wds-dropdown__content > ul') }).wrap(''); /***Matrix***/ if (mw.config.get ('wgCityId') == '177') $('', {   text: 'Matrix',    href: mw.util.getUrl('User:' + mw.config.get('wgUserName') + '/matrix'),    appendTo: $('body > div.global-navigation > div.global-navigation__bottom > div.wds-dropdown.wds-open-to-right.is-attached-to-bottom > div.wds-dropdown__content > ul') }).wrap('');

/***Profile template***/

if (mw.config.get ('wgCityId') == '177') $('', {	text:'Profile Template',	href: mw.util.getUrl ('User:' + mw.config.get('wgUserName') + '/About'),	appendTo: $('body > div.global-navigation > div.global-navigation__bottom > div.wds-dropdown.wds-open-to-right.is-attached-to-bottom > div.wds-dropdown__content > ul') }).wrap('');

/***Signature***/ if (mw.config.get ('wgCityId') == '177') $('', {       text:'Signature',        href: mw.util.getUrl ('User:' + mw.config.get('wgUserName') + '/Signature'),        appendTo: $('body > div.global-navigation > div.global-navigation__bottom > div.wds-dropdown.wds-open-to-right.is-attached-to-bottom > div.wds-dropdown__content > ul') }).wrap(''); /**Links to other wikis**/ /***ViacomCBS Wiki***/ mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'VCW',        href: mw.util.getUrl('w:c:viacomcbs:User:Paramount1106'),        appendTo: $('body > div.global-navigation > div.global-navigation__bottom > div.wds-dropdown.wds-open-to-right.is-attached-to-bottom > div.wds-dropdown__content > ul')    };    $('', settings).wrap(''); });

/***CBS Wiki***/ mw.loader.using('mediawiki.util').then (function{   var settings = {        text:'CBS',        href:mw.util.getUrl('w:c:cbs:User:Paramount1106'),        appendTo:$('body > div.global-navigation > div.global-navigation__bottom > div.wds-dropdown.wds-open-to-right.is-attached-to-bottom > div.wds-dropdown__content > ul')    };    $('', settings).wrap('</li>'); });

/***Paramount Wiki***/

mw.loader.using('mediawiki.util').then (function{   var settings = {        text: 'PAR',        href: mw.util.getUrl('w:c:paramount:User:Paramount1106'),        appendTo:$('body > div.global-navigation > div.global-navigation__bottom > div.wds-dropdown.wds-open-to-right.is-attached-to-bottom > div.wds-dropdown__content > ul')    };    $('<a>', settings).wrap('</li>'); });

/***The CW Wiki***/

mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'TCW',        href:mw.util.getUrl('w:c:thecw:User:Paramount1106'),        appendTo:$('body > div.global-navigation > div.global-navigation__bottom > div.wds-dropdown.wds-open-to-right.is-attached-to-bottom > div.wds-dropdown__content > ul')    };    $('<a>', settings).wrap('</li>'); });

/***ABC Wiki***/

mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'ABC',        href:mw.util.getUrl('w:c:abc:User:Paramount1106'),        appendTo:$('body > div.global-navigation > div.global-navigation__bottom > div.wds-dropdown.wds-open-to-right.is-attached-to-bottom > div.wds-dropdown__content > ul')    };    $('<a>', settings).wrap('</li>'); });

/***CN Wiki***/

mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'CNW',        href:mw.util.getUrl('w:c:cartoonnetwork:User:Paramount1106'),        appendTo:$('body > div.global-navigation > div.global-navigation__bottom > div.wds-dropdown.wds-open-to-right.is-attached-to-bottom > div.wds-dropdown__content > ul')    };    $('<a>', settings).wrap('</li>'); });

/***Dunderpedia***/

mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'DNP',        href:mw.util.getUrl('w:c:theoffice:User:Paramount1106'),        appendTo:$('body > div.global-navigation > div.global-navigation__bottom > div.wds-dropdown.wds-open-to-right.is-attached-to-bottom > div.wds-dropdown__content > ul')    };    $('<a>', settings).wrap('</li>'); });

/***20th Century Fox, 20th Century Studios Wiki***/

mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'20CS',        href:mw.util.getUrl('w:c:20thcenturyfox:User:Paramount1106'),        appendTo:$('body > div.global-navigation > div.global-navigation__bottom > div.wds-dropdown.wds-open-to-right.is-attached-to-bottom > div.wds-dropdown__content > ul')    };    $('<a>', settings).wrap('</li>'); });

/***Kids WB Wiki***/ mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'KWB',        href:mw.util.getUrl('w:c:kidswb:User:Paramount1106'),        appendTo:$('body > div.global-navigation > div.global-navigation__bottom > div.wds-dropdown.wds-open-to-right.is-attached-to-bottom > div.wds-dropdown__content > ul')    };    $('<a>', settings).wrap('</li>'); });