User:Scarecroe/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:Nuke/code.js',        'u:dev:MediaWiki:RedirectManagement/code.js',        'u:dev:MediaWiki:MobilePreview.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'        ]    }); }

/* DEAD VIDEOS END */

/* 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 */