MediaWiki:Gadget-BulkUpload.js

/** * Turns Special:BulkUpload into a bulk upload form. Filenames are kept as-is and all files will have the same information. * Requires MediaWiki:Gadget-BulkUpload/Runtime.js to run. Runtime script is loaded from a separate page due to using ES6. * TODO: Fix error and success handling when ignoring warnings. * Created by SuperHamster on Nookipedia (https://nookipedia.com/wiki/User:SuperHamster) * Licensed under CC BY-SA 3.0 (https://creativecommons.org/licenses/by-sa/3.0/) **/ $.when(mw.loader.using(['mediawiki.util'], $.ready)).done( function {   mw.util.addPortletLink("p-tb", mw.config.get('wgArticlePath').replace('$1', "Special:BulkUpload"), "Bulk upload", "tb-bulkupload", "Upload multiple files at once", undefined, "#t-specialpages"); });

if (mw.config.get('wgCanonicalNamespace')+':'+mw.config.get('wgTitle') === 'Special:BulkUpload' && mw.config.get('wgAction') == 'view') { mw.loader.load('//miiwiki.org/w/index.php?title=MediaWiki:Gadget-BulkUpload/Runtime.js&action=raw&ctype=text/javascript'); }