MediaWiki:Gadget-HotCat.js: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Needs to be global, not in some inner closure scope (can happen if this is loaded as an extension module through the resource loader))
 
m (1 revision)
 
(No difference)

Latest revision as of 06:26, 5 September 2011

window.hotcat_translations_from_commons = true;

/*
 This imports the latest version of HotCat from Commons.
 HotCat is a gadget to make changes to categories much easier.
 Full documentation can be found at http://commons.wikimedia.org/wiki/Help:Gadget-HotCat
*/
if ( mw.config.get( 'wgServer' ).indexOf('https://') == 0 ) {
        mw.loader.load( 'https://secure.wikimedia.org/wikipedia/commons/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' );
} else {
        mw.loader.load( 'http://commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' );
}