User:Mddkpp/common.js

mw.loader.using("mediawiki.user", function {  $('body').delegate('#hotcatCommitForm', 'submit', function  { var submitType = this.wpDiff; if (submitType) { // Switch form submission from diff to save this.wpEditToken.value = mw.user.tokens.get("csrfToken"); submitType.name = submitType.value = 'wpSave'; }   return true; }); });