User:John/common.js

Everything About Fiction You Never Wanted to Know.
Note: After saving, changes may not occur immediately. Click here to learn how to bypass your browser's cache.
  • Google Chrome / Mozilla / Firefox / Safari: hold down Shift while clicking Reload, or press Ctrl-Shift-R (Cmd-Shift-R on Apple Mac);
  • Internet Explorer: hold Ctrl while clicking Refresh, or press Ctrl-F5;
  • Konqueror: simply click the Reload button, or press F5;
  • Opera users may need to completely clear their cache in Tools→Preferences.
function showServer() {
    var server = mw.config.get( 'wgHostname' );
	$( '<li>' ).html( server ).prependTo( '#p-personal ul' );
}
 
$( window ).on( 'load', showServer );