User:Misunderstood Human/common.js

// Remove MPC without muting tab '3' if ( $(".youtubeplayer").length ) { $('ul.tools li:first-child:not(.tools-menu li)').after('Remove MPC'); $(".removeMPC").click(function {       $(".youtubeplayer").remove;        $(".removeMPC").remove;    }); } // Removing fixed images on click $(".fixed-image-template").click(function {    $(this).hide(500, function  { $(this).remove; }); }); // Removing ?t piece in DPLForum link instances if ( $('.forumlist').length ) { $('.forum_new').each(function {        var links = $('.forum_new');        links.each(function  { var nwtrgt = $(this).attr('href').split('?t')[0]; $(this).attr('href', nwtrgt); });   }); } // 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); }