User:SonicEverhate/common.js

if (wgPageName == 'Special:Upload' || wgPageName == 'Special:MultipleUpload' || wgPageName == 'Special:BlankPage?blankspecial=MultiUpload') { $('#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); } if (mw.config.get('wgCanonicalSpecialPageName') === 'Chat') {