MediaWiki:Derivativefx-uploadform.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:Derivativefx-uploadform. |
/*
Special:Upload interface for derivativeFX
*/
/*global mw, $*/
/*jshint multistr:true*/
if (mw.config.get('wgPageName') === 'Special:Upload' && /Derivativefx-uploadform\.js/.test(location.search))
mw.loader.using([ 'mediawiki.util'], function () {
"use strict";
mw.notify($('<span><b>derivativeFX</b> upload form loaded!<br>\
<b>Congratulations!</b>\ You are almost done. Please select the file to upload and the destination file name.\
</span>'), {autoHide: false});
$("#uploadtext").hide();
$("#firstHeading").html("derivativeFX upload");
mw.util.addCSS(
'.mw-htmlform-field-HTMLTextField, .mw-htmlform-field-UploadSourceField\
{color:green; font-weight:bold; background-color:#cfc;}\
.mw-htmlform-submit {font-weight:bold; font-size:28px;}\
.mw-htmlform-field-Licenses, .hotcatLabel, #sessionfail\
{display:none; visibility:hidden !important;}');
});