User:Simon04/upload-into-cat.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
Documentation for this user script can be added at User:Simon04/upload-into-cat. |
// upload in cat taken from https://commons.wikimedia.org/wiki/User:Herzi_Pinki/common.js
if (mw.config.get('wgNamespaceNumber') === 14) {
jQuery(document).ready(function(){
mw.util.addPortletLink('p-cactions', '//commons.wikimedia.org/w/index.php?title=Special:UploadWizard&categories='+encodeURIComponent(mw.config.get('wgTitle')), 'Upload to category', 'UW');
});
}