User:Scarecroe/global.js

importArticles({   type: 'script',    articles: [        'u:dev:OldFilePages/code.js',        'u:dev:MultiUpload/code.js',        'u:dev:MediaWiki:Nuke/code.js',        'u:dev:MediaWiki:RedirectManagement/code.js',        'u:dev:ContribsLink/code.js',        'u:dev:MediaWiki:MobilePreview.js',        'u:dev:MediaWiki:ListFiles/code.js',        'u:dev:MediaWiki:ListAdmins/code.js',    ] });

// ********************************************************* // Dead Videos via Special:BlankPage?blankspecial=deadvideos // ********************************************************* if ( mw.config.get('wgPageName') === 'Special:BlankPage' &&  mw.util.getParamValue('blankspecial') === 'deadvideos' ) { window.deadVideosCategories = ['Videos']; importArticle({       type: 'script',        article: [            'w:c:mlp:MediaWiki:Common.js/DeadVideos.js'        ]    }); }

/* SORT WHATLINKSHERE ALPHABETICALLY BEGIN */

(function($) {   if (mw.config.get('wgCanonicalSpecialPageName') !== 'Whatlinkshere') return;    var sorted_list,        $list = $('#mw-whatlinkshere-list');    sorted_list = $list.children('li').sort(function (a, b) { return ($(a).find('a:first').attr('title') > $(b).find('a:first').attr('title')) ? 1 : -1;   });    $list.children('li').remove;    $list.append(sorted_list); })(jQuery);

/* SORT WHATLINKSHERE ALPHABETICALLY END */