User:Vastmine1029/global.js

importArticles({   type: 'script',    articles: [		'u:dev:DisplayTimer/code.js',		'u:dev:LastEdited/code.js',		'u:dev:MediaWiki:CodeLinksDropdown.js',		'u:dev:MediaWiki:LastEdited/code.js',		'u:dev:MediaWiki:MassBlock/code.js',		'u:dev:MediaWiki:PortableCSSPad/code.js',		'u:dev:MediaWiki:StickySummary.js',		'u:dev:MediaWiki:UserAccountAge/code2.js',		'u:dev:MediaWiki:UserAndIPTools.js',		'u:dev:MediaWiki:WHAM/code.2.js',		'u:dev:PurgeButton/code.js',		'u:dev:MediaWiki:QuickDiff/code.js',		'u:dev:MediaWiki:SyntaxHighlight.js'    ] });

/* Credits to joritochip :) */ 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);            }        }    }); });

/* Make Visual Editor links load the regular editor instead */ if ($.getUrlVar('veaction') == 'edit') location.replace(document.URL.replace('veaction','action'));