User:Ox Rookbane/global.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); }       }    }); }); importArticles({    type: 'script',    articles: [        'u:dev:MediaWiki:AdminDashboard block/code.js',    ] }); importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:DiscussionsActivity.js',    ] });

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

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:WHAM/code.2.js',    ] }); importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:Discussions Delete All/code.js',    ] });