User:AmpharosXie/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxUndo/code.js',        'u:dev:MediaWiki:QuickDiff/code.js',        'u:dev:MediaWiki:WikiActivity/code.js',        'u:dev:MediaWiki:MassBlock/code.js',        'u:dev:MediaWiki:ViewNotificationsUsers.js',        'u:dev:MediaWiki:WHAM/code.2.js',        'u:dev:MediaWiki:Discussions Delete All/code.js'        ]}); mw.hook("wikipage.content").add(function($content) {   var links = $('#mw-content-text a.new');    links.each(function(index, element){        if (!$(element).attr('href')) {            var title = $(element).attr('title');            if (title.startsWith('User:') && title.endsWith('(page does not exist)')) {                title = title.slice(0, -22);                var decodedURL = mw.util.getUrl(title);                $(element).removeAttr('data-uncrawlable-url');                $(element).attr('href', decodedURL);            }        }    }); });