User:Legoktm/global.js
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair rand/WikidataInfo.js&action=raw&ctype=text/javascript");
mw.loader.load("//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&action=raw&ctype=text/javascript");
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Anomie/previewtemplatelastmod.js&action=raw&ctype=text/javascript");
// Add the backend response time to the personal bar.
function showBackendPerformance() {
var respTime = mw.config.get( 'wgBackendResponseTime' ), server = mw.config.get( 'wgHostname' );
$( '<li>' ).attr('style', 'text-transform: none;').html( server + ' ' + respTime.toString() + 'ms' ).prependTo( '#p-personal ul' );
}
$( window ).on( 'load', showBackendPerformance );
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:Legoktm/diff.js&action=raw&ctype=text/javascript' );
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:ESanders (WMF)/commentlinks.js&action=raw&ctype=text/javascript' );
if ( mw.config.get( 'wgNamespaceNumber' ) >= 0 && mw.config.get( 'wgPageContentModel' ) == "wikitext" ) {
mw.loader.using( [ 'mediawiki.util' ], function() {
mw.util.addPortletLink( 'p-cactions', mw.util.wikiScript('rest') + '/v1/page/' + encodeURIComponent( mw.config.get( 'wgPageName' ) ) + '/html',
'Parsoid HTML', 'ca-phtml', 'Parsoid HTML' );
});
}
//mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/lintHint/r.js&action=raw&maxage=86400&ctype=text/javascript" );