User:Fredg999 category edits/common.js: Difference between revisions
Jump to navigation
Jump to search
Added Cat-a-lot loading script |
m Only display on category pages, try to fix URL |
||
| Line 1: | Line 1: | ||
//<nowiki> | //<nowiki> | ||
/* Cat-a-lot - changes category of multiple files */ | /* Cat-a-lot - changes category of multiple files */ | ||
mw.loader.using(['jquery.ui', 'mediawiki.util'], function(){ | if (mw.config.get('wgNamespaceNumber') === 14) { | ||
mw.loader.using(['jquery.ui', 'mediawiki.util'], function(){ | |||
}); | mw.loader.load('https://commons.wikimedia.org/w/load.php?modules=ext.gadget.Cat-a-lot'); | ||
}); | |||
} | |||
////////// Cat-a-lot user preferences ////////// | ////////// Cat-a-lot user preferences ////////// | ||
window.catALotPrefs = {"watchlist":"preferences","minor":true,"editpages":true,"docleanup":false,"subcatcount":10}; | window.catALotPrefs = {"watchlist":"preferences","minor":true,"editpages":true,"docleanup":false,"subcatcount":10}; | ||
////////////////////////////////////catALotEnd// | ////////////////////////////////////catALotEnd// | ||
//</nowiki> | //</nowiki> | ||
Revision as of 15:27, 8 July 2024
//<nowiki>
/* Cat-a-lot - changes category of multiple files */
if (mw.config.get('wgNamespaceNumber') === 14) {
mw.loader.using(['jquery.ui', 'mediawiki.util'], function(){
mw.loader.load('https://commons.wikimedia.org/w/load.php?modules=ext.gadget.Cat-a-lot');
});
}
////////// Cat-a-lot user preferences //////////
window.catALotPrefs = {"watchlist":"preferences","minor":true,"editpages":true,"docleanup":false,"subcatcount":10};
////////////////////////////////////catALotEnd//
//</nowiki>