User:Kaleidescope/global.js

massCategorizationDelay = 1000; importScriptPage('MediaWiki:MassCategorization/code.js', 'dev');

importArticles({   type: "script",    articles: [        'u:dev:AjaxBatchDelete/code.2.js'    ] }); /* QuickCreateProfile */ $('', {id: 'qcp'}) .html('Create profile') .prependTo('#my-tools-menu') .click(function {   $.ajax({ type: 'POST', url: mw.util.wikiScript('api'), dataType: 'json', data: { action: 'edit', title: 'User:Kaleidescope', summary: 'Creating userpage (script)', text: '', format: 'json', token: mw.user.tokens.get('editToken') }   }).done(function (data) { if (data.edit.result === 'Success') { new BannerNotification("Successfully created profile!","confirm").show; } else { new BannerNotification("An error occurred while creating profile.","error").show; }   }).fail(function (data) { new BannerNotification("An error occurred while creating profile.","error").show; }); });