User:JJMC89/checkuser-toollinks-enwiki.js

/** * Hack enwiki contribs link into CU results * @author JJMC89 */ /* */ (function{   if ( mw.config.get( 'wgCanonicalNamespace' ) !== 'Special' || mw.config.get( 'wgCanonicalSpecialPageName' ) !== 'CheckUser' ) {        return;    }

var checkuserresults = document.getElementById('checkuserresults'); if ( checkuserresults === null ) { return; }   checkuserresults = checkuserresults.innerHTML; checkuserresults = checkuserresults.replace(       /()/g,        '$1$2$3$4$5($1https://enwp.org$3>enwiki$5)'    ); document.getElementById('checkuserresults').innerHTML = checkuserresults; }); /* */