User:WW19/global.js

//Imports importArticles({   type: 'script',    articles: [        'u:dev:SkinSwitchButton/code.js',        'u:dev:MediaWiki:ToggleSideBar/code.js',        'u:dev:PortableCSSPad/code.js',        'u:dev:AjaxPatrol/code.js',        'u:dev:AjaxDiff/code.js',        'u:dev:WHAM/pl/code.2.js',        'u:dev:AjaxUndo/code.js',        'u:dev:LastEdited/code.js',        'u:dev:MultiUpload/code.js',        'u:dev:RevealAnonIP/usercode.js',        'u:dev:AjaxRename/code.js',        'u:dev:TopArticles/code.js',        'u:dev:NewImages.js',        'u:dev:MultiUpload/code.js',        'u:dev:MediaWiki:AjaxBatchDelete/code.2.js',        'u:dev:MediaWiki:CategoryRenameAuto-update/code.js',        'u:dev:MediaWiki:FileUsageAuto-update/code.js',        'u:dev:MediaWiki:RCStats.js',        'u:dev:MediaWiki:MassEdit/code.js',        'u:dev:MediaWiki:FindAndReplace/code.js',        'u:dev:MediaWiki:ViewRemoved/code.js' ]});

// Remove default deletion reason $('#mw-deleteconfirm-table input#wpReason').val('');

// Small snippets $('#mw-deleteconfirm-table input#wpReason').val(''); // Remove default deletion reason $('td.mw-input input#wpLeaveRedirect').prop('checked', false); // Uncheck 'Leave a redirect behind' checkbox

/** * @name Wiki  header snippet * @description Replaces link to Special:Wikiactiity in wiki header with Special:Recentchanges * @author     Nanaki */ $(function {	$('.wds-community-header__wiki-buttons a[data-tracking=\'wiki-activity\']').attr({ href: mw.util.getUrl('Special:RecentChanges'), title: 'Recent changes', 'data-tracking': 'recent-changes' }); });