Thread:Dorumin/@comment-26967247-20160627222939

So... I Ctrl-C Ctrl-V the thing in my wiky .js and it doesn't do it's job. Is the code wrong or something? if (wgPageName == 'Special:Upload' || wgPageName == 'Special:MultipleUpload') { $('#wpUploadDescription').val(''); } if (wgAction !== 'edit' && window.location.href.match("/?veaction=edit$") === null) { setInterval(function {   if ($('#ImageUploadLicense').length) {      $('#ImageUploadLicense > option:first-of-type').val('Userfiles');    }  }, 2000); } else if ( wgNamespaceNumber === 1201 ) { setInterval(function {   if ($('#ImageUploadLicense').length) {      $('#ImageUploadLicense > option:first-of-type').val('Userfiles');    }  }, 2000); } if (wgPageName == 'Special:Images') { executed = false; setInterval(function {   if (!executed) {      if ($('textarea[name="wpUploadDescription"]').length) {        executed = true;        $('textarea[name="wpUploadDescription"]').val('');      }    }  }, 2000); 