User:Friendly Mountain12/global.js

window.AutoCreateUserPagesConfig = { content:{ 2:,       3:,        1202:''    },    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:WhatLinksHere/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' ] });

/**Customized QuickIW script**/ (function($, mw) {   if (window.QuickIWLoaded) {        return;    }    window.QuickIWLoaded = true;    var QuickIW = {        page: mw.config.get('wgPageName'),        preload: function(i18n) {            $.when( i18n.loadMessages('QuickIW'), mw.loader.using(['mediawiki.api', 'mediawiki.user', 'mediawiki.util']) ).then($.proxy(this.init, this));       },        init: function(i18n) {            this.i18n = i18n;            this.api = new mw.Api;            $('.page-header__contribution-buttons .wds-list, .UserProfileActionButton .WikiaMenuElement').append( $('').append(                   $('', { click: $.proxy(this.click, this), id: 'QuickIW', text: i18n.msg('interwiki').plain })               )            );        },        click: function {            $.showCustomModal( this.i18n.msg('interwiki').escape, $(' ').append(                   $(' ').append( $(' ', {                           'for': 'QuickIWLanguage',                            'text': this.i18n.msg('language').plain                        }), $(' ', {                           id: 'QuickIWLanguage',                            name: 'QuickIWLanguage',                            type: 'text'                        }) ),                   $(' ').append( $(' ', {                           'for': 'QuickIWPage',                            'text': this.i18n.msg('page').plain                        }), $(' ', {                           id: 'QuickIWPage',                            name: 'QuickIWPage',                            type: 'text'                        }).attr('placeholder', this.page) ),                   $(' ').append( $(' ', {                           'for': 'QuickIWSummary',                            'text': this.i18n.msg('summary').plain                        }), $(' ', {                           id: 'QuickIWSummary',                            name: 'QuickIWSummary',                            type: 'text'                        }).attr(                            'placeholder',                            this.i18n                                .inContentLang                                .msg('placeholder')                                .plain                        ) )               ),                {                    id: 'QuickIWModal', buttons: [{ defaultButton: true, message: this.i18n.msg('add').escape, handler: $.proxy(this.edit, this) }]               }            );        },        edit: function {            var wiki = $('#QuickIWLanguage').val,                $summary = $('#QuickIWSummary');            if (!wiki || this.editing) {                // TODO: Show error                return;            }            this.editing = true;            this.api.post({ action: 'edit', title: this.page, summary: $summary.val || $summary.attr('placeholder'), appendtext: '\n| this.page) + '', token: mw.user.tokens.get('editToken'), minor: true, bot: true })           .then($.proxy(this.callback, this))            .fail($.proxy(this.fail, this));        },        callback: function(d) {            if (d.error) {                this.editing = false;                this.error(d.error.code);            } else {                window.location.href = mw.util.getUrl(this.page, { action: 'purge' });           }        },        fail: function {            this.editing = false;            this.error(this.i18n.msg('ajax-error').plain);        },        error: function(text) {            new BannerNotification( this.i18n.msg('error', text).escape, 'error' ).show;       }    };    if (!window.dev || !window.dev.i18n) {        importArticle({ type: 'script', article: 'u:dev:MediaWiki:I18n-js/code.js' });   }    importArticle({ type: 'style', article: 'u:dev:MediaWiki:QuickIW.css' });   mw.hook('dev.i18n').add($.proxy(QuickIW.preload, QuickIW)); }(jQuery, mediaWiki));

if ($.getUrlVar('veaction') === 'edit') { location.replace(document.URL.replace('veaction', 'action')); }

/**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'            }        }    } });

/**Guestbook profile tab**/

if (mw.config.get ('wgCityId') === '177') $('', {   text: 'Guestbook',    href: mw.util.getUrl('User:' + mw.config.get('wgUserName') + '/Guestbook'),    appendTo: $('#UserProfileMasthead + .tabs-container > .tabs') }).wrap('');

/**Matrix profile tab**/

if (mw.config.get ('wgCityId') === '177') $('', {   text: 'Matrix',    href: mw.util.getUrl('User:' + mw.config.get('wgUserName') + '/matrix'),    appendTo: $('#UserProfileMasthead + .tabs-container > .tabs') }).wrap('');