User:TheKorraFanatic/global.js

/* Lets the join chat button open in a new tab. Taken from TyA's global.js page */ $(setTimeout('ChatCheck', 200)); function ChatCheck { if($('.start-a-chat-button').length != 0) { $('.start-a-chat-button').replaceWith('Join the Chat'); } else { setTimeout('ChatCheck', 200); }   }    function OpenChatWindow { window.chatwindow = window.open('/index.php?title=Special:Chat&useskin=wikia'); } /* Auto-categorizes images to Category:Images. Taken from Jackninja5DipperGravityFall's global.js page. */ if (mw.config.get('wgCanonicalSpecialPageName') === 'MultipleUpload' || mw.config.get('wgCanonicalSpecialPageName') === 'Upload') { if (!$.getUrlVar('wpForReUpload') && !$('#wpUploadDescription').val) { jQuery(function ($) {           'use strict';            $('#wpUploadDescription').val('');        }); } }

// AjaxBlock window.AjaxBlock = { check: { talk: true, autoBlock: true, override: true } };

// AjaxRC window.ajaxSpecialPages = ['Log', 'Recentchanges', 'Watchlist', 'WikiActivity'];

// FastDelete window.fdButtons = []; fdButtons[fdButtons.length] = {'summary': 'Author request', 'label': 'AR'}; fdButtons[fdButtons.length] = {'summary': 'Broken file', 'label':'BF'}; fdButtons[fdButtons.length] = {'summary': 'Cleanup', 'label': 'CP'}; fdButtons[fdButtons.length] = {'summary': 'Marked for Deletion', 'label': 'MFD'}; fdButtons[fdButtons.length] = {'summary': 'Spam', 'label' : 'S'}; fdButtons[fdButtons.length] = {'summary': 'Vandalism', 'label' : 'V'}; fdButtons[fdButtons.length] = {'summary': 'Unused', 'label': 'U'};

// AutoCreateUserPage configuration window.AutoCreateUserPagesConfig = { content: { 2: '',       3: false, 1201: false },   summary: 'Creating userpage.' };

// WHAM window.WHAMBotMe = true; window.WHAMDelay = 1000;

importArticles({	type: 'script',	articles: [		'u:dev:AbuseLogRC.js',		'u:dev:AjaxBatchDelete.js',		'u:dev:AjaxBatchUndelete.js',		'u:dev:AjaxBlock/code.js',		'u:dev:AjaxRC/code.js',		'u:dev:AjaxRename/code.js',		'u:dev:AjaxThreadDelete/code.js',		'u:dev:AjaxUndo/code.js',		'u:dev:AnchoredRollback/code.js',		'u:dev:BackToTopButton/code.js',		'u:dev:BlogLink/code.js',		'u:dev:CategoryRenameAuto-update/code.js',		'u:dev:DisableInfoboxBuilder.js',		'u:dev:Discussions Delete All/code.js', 		'u:dev:DiscussionsFeed.js',		'u:dev:DiscussionsRailModule/code.js',		'u:dev:DiscussionsViewer/code.js', 		'u:dev:EditBio/code.js',		'u:dev:EditConflictAlert/code.js',		'u:dev:FastDelete/code.js',		'u:dev:GlobalEditcount/code.js',		'u:dev:LinkToDiscussionsProfileIfTheyDontHaveLivePosts/code.js',		'u:dev:ListFiles/code.js',		'u:dev:MarkForDeletion/code.js',		'u:dev:MassBlock/code.js',		'u:dev:MassProtect/code.js', 'u:dev:MassUserRights/code.js', 'u:dev:PortableCSSPad/code.js', 'u:dev:QuickDiff/code.js', 'u:dev:RailWAM/code.js', 'u:dev:RevealAnonIP/code.js', 'u:dev:UnhideUserMasthead/code.js', 'u:dev:UserAccountAge/code2.js', 'u:dev:UserCheck/code.js', 'u:dev:VSTFReport.js', 'u:dev:ViewDeleted/code.js', 'u:dev:ViewRemoved/code.js', 'u:dev:WHAM/code.2.js', 'u:dev:WLHEditLinks/code.js', 'u:dev:WorkingMoreUsersCount.js', 'u:kocka:ReportFormatter.js', 'u:kocka:User:KockaAdmiralac/AutoCreateUserPages.javascript', ] });