User:Dave/global.js

mw.loader.load('//meta.miraheze.org/w/index.php?title=MediaWiki:UserInfo.js&action=raw&ctype=text/javascript'); function showBackendPerformance { var respTime = mw.config.get( 'wgBackendResponseTime' ), backend = 'PHP7', server = mw.config.get( 'wgHostname' ), caption = respTime.toString + 'ms ( ' + backend + ' at ' + server + ')'; $( '' ).html( caption ).prependTo( '#p-personal ul' ); }

$( document ).ready( showBackendPerformance );

function checkForLocalSysop { if ( mw.config.get('wgUserGroups').includes('sysop') ) { $( '' ).html( '[Local Sysop]' ).prependTo( '#p-personal ul' ); } } $( document ).ready( checkForLocalSysop );