MediaWiki:Group-extended-uploader.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 MediaWiki:Group-extended-uploader. |
/* Any JavaScript here will be loaded for extended uploader only */
/**
* Client side license review is currently not enabled for extended uploader,
* and therefore causing abusefilter errors at Special:UplaodWizard and hitting the filter logs.
* Using the review Bot as a workaround.
* See also T90004#1586712 and Special:Redirect/revision/288119825
*/
if (mw.config.get('wgCanonicalSpecialPageName') === 'UploadWizard') {
$( document ).ready(function() {
mw.FlickrChecker.licenseMaps = {
'All Rights Reserved': 'invalid',
'Attribution License': '{{cc-by-2.0}}{{flickrreview}}',
'Attribution-NoDerivs License': 'invalid',
'Attribution-NonCommercial-NoDerivs License': 'invalid',
'Attribution-NonCommercial License': 'invalid',
'Attribution-NonCommercial-ShareAlike License': 'invalid',
'Attribution-ShareAlike License': '{{cc-by-sa-2.0}}{{flickrreview}}',
'No known copyright restrictions': '{{Flickr-no known copyright restrictions}}{{flickrreview}}',
'United States Government Work': '{{PD-USGov}}{{flickrreview}}',
'Public Domain Dedication (CC0)': '{{cc-zero}}{{flickrreview}}',
'Public Domain Mark': '{{flickrreview}}'
};
});
}