User:Friendly Mountain12/global.js

window.AutoCreateUserPagesConfig = { content:{ 2:'',       3:false, 1202:false },   summary:'Introducing myself to the wiki' };

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' };

/**The 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:ProfileIcons.js',        'u:dev:MediaWiki:PortableListUsers.js',        'u:dev:MediaWiki:ListAdmins/code.js',        'u:dev:MediaWiki:Quotes.js',        'u:dev:MediaWiki:MastheadGender/code.js',        'u:dev:MediaWiki:QuickAccessToCSSAndJS/code.js',        'u:dev:MediaWiki:EditBio/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:ModernButtons/code.js', 'u:dev:MediaWiki:UserAndIPTools.js', 'u:dev:MediaWiki:ViewRemoved/code.js', 'u:dev:MediaWiki:FastDelete/code.js', 'u:dev:MediaWiki:MassEdit/code.js', 'u:dev:MediaWiki:WallGreetingButton/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:CategoryRenameAuto-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:SnowStorm.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'            }        }    } });

/**Custom dropdown links**/

/***Guestbook***/ if (mw.config.get ('wgCityId') == '177') $('', {   text: 'Guestbook',    href: mw.util.getUrl('User:' + mw.config.get('wgUserName') + '/Guestbook'),    appendTo: $('.wds-list', '.wds-global-navigation__user-menu') }).wrap(''); /***Matrix***/ if (mw.config.get ('wgCityId') == '177') $('', {   text: 'Matrix',    href: mw.util.getUrl('User:' + mw.config.get('wgUserName') + '/matrix'),    appendTo: $('.wds-list', '.wds-global-navigation__user-menu') }).wrap('');

/**Links to other wikis**/ /***ViacomCBS Wiki***/ mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'ViacomCBS Wiki',        href: mw.util.getUrl('w:c:viacomcbs:User:Paramount1106'),        appendTo: $('.wds-list', '.wds-global-navigation__user-menu')    };    $('', settings).wrap(''); });

/***CBS Wiki***/ mw.loader.using('mediawiki.util').then (function{   var settings = {        text:'CBS Wiki',        href:mw.util.getUrl('w:c:cbs:User:Paramount1106'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('', settings).wrap(''); });

/***Paramount Wiki***/

mw.loader.using('mediawiki.util').then (function{   var settings = {        text: 'Paramount Pictures Wiki',        href: mw.util.getUrl('w:c:paramount:User:Paramount1106'),        appendTo:$('.wds-list', '.wds-global-navigation__user-menu')    };    $('', settings).wrap(''); });

/***The CW Wiki***/

mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'The CW Wiki',        href:mw.util.getUrl('w:c:thecw:User:Paramount1106'),        appendTo:$('.wds-list', '.wds-global-navigation__user-menu')    };    $('', settings).wrap('</li>'); });

/***ABC Wiki***/

mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'ABC Wiki',        href:mw.util.getUrl('w:c:abc:User:Paramount1106'),        appendTo:$('.wds-list', '.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('</li>'); });

/***CN Wiki***/

mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'Cartoon Network Wiki',        href:mw.util.getUrl('w:c:cartoonnetwork:User:Paramount1106'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('</li>'); });

/***Dunderpedia***/

mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'Dunderpedia',        href:mw.util.getUrl('w:c:theoffice:User:Paramount1106'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('</li>'); });

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

mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'20th Century Fox Wiki',        href:mw.util.getUrl('w:c:20thcenturyfox:User:Paramount1106'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('</li>'); });

/***Kids WB Wiki***/ mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'Kids WB Wiki',        href:mw.util.getUrl('w:c:kidswb:User:Paramount1106'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('</li>'); });

/**RC Links (sorted by wiki)**/

/***RC - ABC Wiki***/

mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'RC - ABC Wiki',        href:mw.util.getUrl('w:c:abc:Special:RecentChanges'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('</li>'); });

/***RC - CBS Wiki***/ mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'RC - CBS Wiki',        href:mw.util.getUrl('w:c:cbs:Special:RecentChanges')    };    $('<a>', settings).wrap('</li>'); });

/***RC - Paramount Wiki***/ mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'RC - Paramount Pictures Wiki',        href:mw.util.getUrl('w:c:paramount:Special:RecentChanges'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('</li>'); });

/***RC - ViacomCBS Wiki***/ mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'RC - ViacomCBS Wiki',        href:mw.util.getUrl('w:c:viacomcbs:Special:RecentChanges'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('</li>'); });

/***RC - The CW Wiki***/ mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'RC - The CW Wiki',        href:mw.util.getUrl('w:c:thecw:Special:RecentChanges'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('</li>'); });

/***RC - Dunderpedia***/ mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'RC - Dunderpedia',        href:mw.util.getUrl('w:c:theoffice:Special:RecentChanges'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>',settings).wrap('</li>'); });

/***RC - CN Wiki***/ mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'RC - Cartoon Network Wiki',        href:mw.util.getUrl('w:c:cartoonnetwork:Special:RecentChanges'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('</li>'); });

/***RC - 20th Century Fox Wiki***/ mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'RC - 20th Century Fox Wiki',        href:mw.util.getUrl('w:c:20thcenturyfox:Special:RecentChanges'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('</li>'); });

/**User talk / Message Wall links**/

/***User talk***/

/****Developers Wiki****/ mw.loader.using('mediawiki.util').then (function{   var settings = {        text:'User talk - Developers Wiki',        href:mw.util.getUrl('w:c:dev:User talk:Paramount1106'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('</li>'); });

/****Just Cause Wiki****/ mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'User talk - Just Cause Wiki',        href:mw.util.getUrl('w:c:justcause:User talk:Paramount1106'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('</li>'); });

/***Message Wall***/

/****ViacomCBS Wiki****/ mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'Message Wall - ViacomCBS Wiki',        href:mw.util.getUrl('w:c:viacomcbs:Message Wall:Paramount1106'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('<li></li>'); });

/****ABC Wiki****/ mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'Message Wall - ABC Wiki',        href:mw.util.getUrl('w:c:abc:Message Wall:Paramount1106'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('<li></li>'); });

/****The Office Wiki, Dunderpedia****/ mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'Message Wall - Dunderpedia',        href:mw.util.getUrl('w:c:theoffice:Message Wall:Paramount1106'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('<li></li>'); });

/****CN Wiki****/ mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'Message Wall - CN Wiki',        href:mw.util.getUrl('w:c:cartoonnetwork:Message Wall:Paramount1106'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('<li></li>'); });

/****Paramount Wiki, 20th Century Fox Wiki, The CW Wiki, CBS Wiki****/

mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'Message Wall - Paramount Wiki',        href:mw.util.getUrl('w:c:paramount:Message Wall:Paramount1106'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('<li></li>'); });

mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'Message Wall - 20th Century Fox Wiki',        href:mw.util.getUrl('w:c:20thcenturyfox:Message Wall:Paramount1106'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('<li></li>'); });

mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'Message Wall - CW Wiki',        href:mw.util.getUrl('w:c:thecw:Message Wall:Paramount1106'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('<li></li>'); });

mw.loader.using('mediawiki.util').then(function{   var settings = {        text:'Message Wall - CBS Wiki',        href:mw.util.getUrl('w:c:cbs:Message Wall:Paramount1106'),        appendTo:$('.wds-list','.wds-global-navigation__user-menu')    };    $('<a>', settings).wrap('<li></li>'); });

/**Blocked user message**/

var MessageBlock = { title : 'You have been blocked', message : ' \\Block notice:\\ This user has been blocked by me. If you think that the block was unfair, please let me know on my message wall. If I don\t unblock you, do not circumvent the current block.' };

/**No WAM logging on SOAP Wiki**/ if (mw.config.get ('wgCityId') == '65099') window.railWAM = { showLogAlert: false };

/**Profile tabs with a photo**/

var links = [ $("<li>", {       html:$("<a>", { href:'https://paramount.fandom.com/wiki/User:Paramount1106', css:{ },           html:$(" ", {                src:'https://vignette.wikia.nocookie.net/central/images/9/92/Paramount_Pictures.svg/revision/latest?cb=20200426154826',                css:{                    width:'60px'                }            }) })   }),    $("<li>",{        html:$('<a>',{ href:'https://paramount.fandom.com/wiki/User:Paramount1106', css:{ },           html:$(' ',{                css:{                    width:'60px'                }            }) })   }) ];

var config = mw.config.get(['wgTitle','wgRelevantUserName']); if(config.wgTitle ==='User:' + config.wgRelevantUserName) $("#WikiaUserPagesHeader .tabs-container .tabs").append(links)

var links = [ $("<li>", {       html:$("<a>", { href:'https://cbs.fandom.com/wiki/User:Paramount1106', css:{ },               html:$(' ', {                    src:'https://vignette.wikia.nocookie.net/central/images/5/56/Cbs_symbol.svg/revision/latest?cb=20200222141644',                    css:{                        width:'60px'                    }                }) })   }),    $('<li>', {        html:$('<a>', { href:'https://cbs.fandom.com/wiki/User:Paramount1106', css:{ },               html:$(' ', {                    css:{                        width:'60px'                    }                }) })   }) ]; var config = mw.config.get(['wgTitle','wgRelevantUserName']); if(config.wgTitle === 'User:' + config.wgRelevantUserName) $('#WikiaUserPagesHeader .tabs-container .tabs').append(links);