MediaWiki talk:Gadget-Hotcat.js

Latest comment: 13 years ago by TCNSV in topic Commons load =

Change request change

{{editprotected}}

Shouldn't "titles.lenght" be "titles.length"? πr2 (talk • changes) 22:49, 7 September 2010 (UTC)Reply

  Done Exert 23:02, 7 September 2010 (UTC)Reply

Commons load = change

{{editprotected}} Please add the more intuitive HotCat from Commons using:

/*
 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 ( wgServer.indexOf('https://') == 0 ) {
  importScriptURI ('https://secure.wikimedia.org/wikipedia/commons/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript');
} else {
  importScriptURI ('http://commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript');
}

TCNSV (talk) 04:30, 29 November 2010 (UTC)Reply

  Done. Loaded the following:
/*
 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' );
}
Krinkle (talk)
Return to "Gadget-Hotcat.js" page.