User:Biesaga/common.js

// Automatic addition of User files 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); }