Thread:UltimateSupreme/@comment-4347751-20160430162823/@comment-4347751-20160503145518

UltimateSupreme wrote: does that Adding such code seems to break the script? if (mw.config.get('wgCanonicalSpecialPageName') === 'Upload') { if (!$.getUrlVar('wpForReUpload')) jQuery(function ($) {       'use strict';        var $desc = $('#wpUploadDescription');        if ($desc.val) {            return; // If not empty then don't do anything (i.e. error message confirm page)        }         $desc.val( ''       );        function verifyLicense {		if (!$('#wpLicense').val) {                  window.alert('Licensing must be complete.');                  return false;               }        }        $desc.closest('form').submit(verifyLicense);    }); } }