User:Nicko756/global.js

AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Auto-refreshes the page.'; ajaxPages = ["Special:RecentChanges", "Special:WikiActivity"];

var qtUserPageTemplate = ''; var qtMessageWallGreetingTemplate = '';

var MultiUploadoption = { max: 50 };

var QuickToolsAdvancedtop = false;

massProtectDelay = 1000; importScriptPage('MassProtect/code.js', 'dev');

importScriptPage('User:Monchoman45/ChatHacks.js', 'community');

importScriptPage('User:Madnessfan34537/multikick.js', 'callofduty');

importScriptPage('MultipleFileDelete/code.js', 'dev'); importScriptPage('MultiUpload/code.js', 'dev'); importScriptPage('QuickTools/code.js', 'dev'); importScriptPage('QuickComments/advanced.js', 'dev'); importScriptPage('RevealAnonIP/code.js', 'dev'); importScriptPage('SkinSwitchButton/code.js', 'dev'); importScriptPage('View_Source/code.js', 'dev');

WHAMDelay = 100; importScriptPage('WHAM/code.2.js', 'dev');

importArticles({   type: 'script',    articles: [        'u:callofduty:User:Madnessfan34537/redlinkfix.js',        'u:dev:MediaWiki:AjaxBatchUndelete/code.js',        'u:dev:MediaWiki:AjaxRC/code.js',        'u:dev:MediaWiki:AjaxRedirect/code.js',        'u:dev:MediaWiki:AjaxEmoticons/code.js',        'u:dev:MediaWiki:AjaxPatrol/code.js',        'u:dev:MediaWiki:AjaxUndo/code.js',        'u:dev:MediaWiki:AnchoredRollback/code.js',        'u:dev:MediaWiki:BackToTopButton/code.js',        'u:dev:MediaWiki:CatNav/code.js',        'u:dev:MediaWiki:CleanWantedFiles/code.js',        'u:dev:MediaWiki:DiscussionsFeed.js',        'u:dev:MediaWiki:FasterBanModule/code.js',        'u:dev:MediaWiki:HeaderLinks/code.js',        'u:dev:MediaWiki:LastEdited/code.js',        'u:dev:MediaWiki:ListFiles/code.js',        'u:dev:MediaWiki:MassCategorization/code.js',        'u:dev:MediaWiki:Message/code.js', 'u:dev:MediaWiki:MiniComplete/code.js', 'u:dev:MediaWiki:MonobookHighlight.js', 'u:dev:MediaWiki:NullEditButton/code.js', 'u:dev:MediaWiki:Nuke/code.js', 'u:dev:MediaWiki:PageMakerPro/code.js', 'u:dev:MediaWiki:PortableCSSPad/code.js', 'u:dev:MediaWiki:QQX/code.js', 'u:dev:MediaWiki:QuickCreateMessageWallGreeting/code.js', 'u:dev:MediaWiki:QuickCreateUserPage/code.js', 'u:dev:MediaWiki:QuickLogs/code.js', 'u:dev:MediaWiki:Quick_Management/code.js', 'u:dev:MediaWiki:QuickToolsv2/code.js', 'u:dev:MediaWiki:RedirectManagement/code.js', 'u:dev:MediaWiki:RelocateEditDiscussionButtons/code.js', 'u:dev:MediaWiki:ReplyBottom/code.js', 'u:dev:MediaWiki:Rollback/code.js', 'u:dev:MediaWiki:SearchButtonV2/code.js', 'u:dev:MediaWiki:SearchSuggest/code.js', 'u:dev:MediaWiki:SpellCheckModule/code.js', 'u:dev:MediaWiki:UserTalkNotifications/code.js', 'u:dev:MediaWiki:UTCClock.js', 'u:dev:MediaWiki:WallGreetingButton/code.js', 'u:kocka:MediaWiki:AjaxCommentDelete/code.js', 'u:kocka:MediaWiki:AjaxThreadDelete/code.js', 'u:dev:MediaWiki:ViewDeleted/code.js', 'u:dev:MediaWiki:ViewRemoved/code.js', ] });

importArticles({   type: "script",    articles: [          "u:dev:MediaWiki:AjaxDelete/code.js",        "u:dev:MediaWiki:CategoryRenameAuto-update/code.js",        "u:dev:MediaWiki:DynamicImages/code.js",        "u:dev:MediaWiki:GlobalEditcount/code.js",        "u:dev:MediaWiki:PurgeBlogs/code.js",    ] });

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:Wikimarks/code.js'    ] });

/* Auto-categorizes images to Category:Images */ if (mw.config.get('wgCanonicalSpecialPageName') === 'MultipleUpload' || mw.config.get('wgCanonicalSpecialPageName') === 'Upload') { if (!$.getUrlVar('wpForReUpload') && !$('#wpUploadDescription').val) { jQuery(function ($) {           'use strict';            $('#wpUploadDescription').val('');        }); } }

/* Make Visual Editor links load the regular editor instead */ if ($.getUrlVar('veaction') == 'edit') location.replace(document.URL.replace('veaction','action')); /* PM Button */ if(wgCanonicalSpecialPageName == 'Chat') { function createGroupPM { var users = prompt('Enter comma seperated list of users to start a PM with',''); var users = users.split(','); mainRoom.openPrivateChat(users); } $('form#Write').append('PM'); }

/* Add powerusers checkbox to Special:ListUsers - Credit to User:452 */ if (wgCanonicalSpecialPageName == "ListUsers") $("fieldset.lu_fieldset tr:last-child").prepend('  Power Users ');

/* Makes edit count on user page link to Special:Editcount - Credit to User:452 */ if ($("#UserProfileMasthead").size) $("#UserProfileMasthead .tally em").wrap($("").attr("href", "/Special:Editcount/"+$("#UserProfileMasthead h1[itemprop=name]").html));

/* Add buttons to dropdown */ $(function { $('Edit count').insertBefore('.AccountNavigation .subnav li:first');  $('Contributions').insertBefore('.AccountNavigation .subnav li:first');  $('Wiki Activity</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

/* Custom edit buttons */ if (wgAction == "edit" || wgAction == "publish") { if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette2.wikia.nocookie.net/callofduty/images/e/e5/Center_button.png", "speedTip": "Center", "tagOpen": " ", "tagClose": " ", "sampleText": "" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette2.wikia.nocookie.net/callofduty/images/4/4d/Sup_button.png", "speedTip": "Sup", "tagOpen": " ", "tagClose": " ", "sampleText": "" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette3.wikia.nocookie.net/callofduty/images/9/9d/Sub_button.png", "speedTip": "Sub", "tagOpen": " ", "tagClose": " ", "sampleText": "" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette3.wikia.nocookie.net/callofduty/images/5/5c/Noinclude_button.png", "speedTip": "Noinclude", "tagOpen": " ", "tagClose": " ", "sampleText": "" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette1.wikia.nocookie.net/callofduty/images/8/85/Ref_button.png", "speedTip": "Ref", "tagOpen": " ", "sampleText": "" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#REDIRECT",           "tagClose": "", "sampleText": "PAGE" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette3.wikia.nocookie.net/central/images/4/4b/Button_nbsp.png", "speedTip": " ", "tagOpen": " ", "tagClose": "", "sampleText": "" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette3.wikia.nocookie.net/callofduty/images/7/70/Support_button.png", "speedTip": "Support", "tagOpen": "*", "tagClose": " " + "~", "sampleText": "" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette2.wikia.nocookie.net/callofduty/images/f/f5/Neutral_button.png", "speedTip": "Neutral", "tagOpen": "*", "tagClose": " " + "~", "sampleText": "" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette2.wikia.nocookie.net/callofduty/images/a/a3/Oppose_button.png", "speedTip": "Oppose", "tagOpen": "*", "tagClose": " " + "~", "sampleText": "" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://vignette4.wikia.nocookie.net/central/images/5/55/Dash.png/revision/latest?cb=20160424012955", "speedTip": "Dash", "tagOpen": "-", "tagClose": "", "sampleText": "" };   } }