MediaWiki:Gadget-ContributorsHack.js

Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
$( function() {
    var cats = document.getElementById( 'mw-hidden-catlinks' );
    if ( !cats ) {
        return;
    }
    function addContribsLink () {
		var contribsLink = $( '<span> ')
			.addClass( 'contributorslink-test plainlinks metadata nomobile noprint' )
			.append( $('<a>')
				.addClass( 'external' )
				.attr( 'href',
					'https://xtools.wmflabs.org/articleinfo/'
					+ mw.config.get( 'wgServerName' )
					+ '/'
					+ encodeURIComponent( mw.config.get( 'wgPageName' ) ) )
				.text( 'Contributors' )
			);
		contribsLink.insertAfter( $( '#siteSub' ) );
    }
    cats = cats.getElementsByTagName( 'a' );
    for ( var i = 0; i < cats.length; i++ ) {
        if ( cats[i].title === 'Category:Articles with contributors link' ) {
        	addContribsLink();
            break;
        }
    }
} );