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

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

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

importScriptPage('AutoEditDropdown/code.js', 'dev'); importScriptPage('ChatBlockButton/code.js', 'dev'); importScriptPage('Client.js', 'wikimarks'); importScriptPage('DisplayClock/code.js', 'dev');\ 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('ViewRemoved/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:c:User:Ozuzanna/chatconnect.js',        'u:dev:AjaxRC/code.js',        'u:dev:AjaxRedirect/code.js',        'u:dev:AutoEditPages/code.js',        'u:dev:BackToTopButton/code.js',        'u:dev:ChatModHover/code.js',        'u:dev:FasterBanModule/code.js',        'u:dev:HeaderLinks/code.js',        'u:dev:HideRail/code.js',        'u:dev:LastEdited/code.js',        'u:dev:ListFiles/code.js',        'u:dev:MassCategorization/code.js',        'u:dev:Message/code.js',        'u:dev:MiniComplete/code.js',        'u:dev:NullEditButton/code.js',        'u:dev:PageMakerPro/code.js',        'u:dev:PortableCSSPad/code.js',        'u:dev:QQX/code.js',        'u:dev:QuickCreateMessageWallGreeting/code.js',        'u:dev:Quick_Management/code.js',        'u:dev:RecentChangesMultiple/code.js', 'u:dev:RelocateEditDiscussionButtons/code.js', 'u:dev:QuickCreateUserPage/code.js', 'u:dev:SearchButtonV2/code.js', 'u:dev:SearchSuggest/code.js', 'u:dev:UserTalkNotifications/code.js', 'u:dev:WallGreetingButton/code.js', ] });

importArticles({   type: "script",    articles: [          "u:dev:CategoryRenameAuto-update/code.js",        "u:dev:DynamicImages/code.js",        "u:dev:PurgeBlogs/code.js",        "u:gamedezyner:Tools/Quick_User_Switch/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));

// Handles special pages in monobook that that are "available only in Wikia skin" var monobookSpecialPageHandler = function { if (skin === "monobook") { if ((window.location.href.endsWith("Special:Chat")) ||            (window.location.href.endsWith("Special:CSS")) ||             (window.location.href.endsWith("Special:WikiFeatures"))) { window.location.href = window.location.href + "?useskin=Wikia"; }       if (window.location.href.endsWith("Special:WikiActivity")) { window.location.href = "/wiki/Special:RecentChanges"; }   } };