User:Alexis Jazz/warn-edit-summary.js

// function enablePublishButton { document.editform.wpSave.style.background = ""; } if ( document.editform && mw.config.get('wgNamespaceNumber') == 0 && mw.config.get('wgAction') == 'edit' ) { document.editform.wpSave.style.background = "red"; document.editform.wpSummary.onclick = enablePublishButton; document.editform.wpSummary.onchange = enablePublishButton; } //