User:Mario&LuigiBowser'sInsideStory/global.js

// AjaxRC window.ajaxSpecialPages = ["Recentchanges", "WikiActivity", "Contributions", "Log"]; window.ajaxIndicator = 'http://images2.wikia.nocookie.net/__cb20100609110347/software/images/a/a9/Indicator.gif'; window.ajaxRefresh = 60000; window.AjaxRCRefreshText = 'Auto-refresh'; // create userpage $(function {   $('.toolbar .tools').append('Create userpage');   $('a.createUserPage').click(function { // Prevent accidental clicking from creating userpage $.showCustomModal('Create userpage', 'Do you wish to do that?', {           id: 'confirmUserpageModal',            width: 300,            height: 150,            buttons: [                {                    id: 'yes',                    defaultButton: true,                    message: 'Confirm',                    handler: function {                        $.ajax({ type: 'POST', url: mw.util.wikiScript('api'), dataType: 'json', data: { action: 'edit', title: 'User:Mario&LuigiBowser\'sInsideStory', text: '', summary: 'Creating userpage (script)', minor: true, format: 'json', token: mw.user.tokens.get('editToken') }                       }).done(function (data){ if (data.edit.result === 'Success') { new BannerNotification("Userpage has been successfully created!","confirm").show; } else { new BannerNotification("An error occurred while creating userpage","error").show; }                       }).fail(function (data) { new BannerNotification("An error occurred while creating userpage","error").show; });                       $('#confirmUserpageModal').closeModal;                    }                },                {                    id: 'no',                    defaultButton: false,                    message: 'Cancel',                    handler: function {                        $('#confirmUserpageModal').closeModal;                    }                }            ]        }); }); });

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