One of our clients does not want the save confirmation dialog to appear; they would like for the save to happen immediately.
They proposed using this code on their wiki:
ve.init.mw.ArticleTarget.prototype.showSaveDialog = function ( action, checkboxName ) { this.save(this.getDocToSave(), this.getSaveOptions()); this.tryTeardown(true); return; }
However, it only executes in the browser's console. When adding it to MediaWiki:Common.js, it doesn't do anything.
How can this snippet of code be modified to execute such that it can be stored in MediaWiki:Common.js?