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.AjaxBlock = { expiryTimes: { '1 day':'1 day', '1 week':'1 week', '2 weeks':'2 weeks', '1 month':'1 month', '3 months':'3 months', '6 months':'Half a year', '1 year':'1 year', 'Infinite':'Infinite' },   blockReasons: { 'Creating blank pages':'Blank pages', 'Not following TOU':'TOU violation', 'Creating multiple accounts to avoid block':'Avoiding block', 'Spam':'Spamming', 'Impersonating users':'Impersonation', 'Underage':'Underage', 'Adding nonsenical details':'Nonsense' } }

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' } }; /**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:ListGroupMembers.js',        'u:dev:MediaWiki:ProfileIcons.js',        'u:dev:MediaWiki:PortableListUsers.js',        'u:dev:MediaWiki:ListAdmins/code.js',        'u:dev:MediaWiki:AjaxBlock/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:VSTFReport.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:AuroraTheme.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' ] });

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