User:Xbony2/common/autosummary.js

function addSummary{ /* Partly copied from w:Wikipedia:WikiProject User scripts/Scripts/Force edit summary, this is kind of a test*/ if(!/&action=edit/.test(window.location.href) && !/&action=submit/.test(window.location.href)) return; if(/&section=new/.test(window.location.href)) return; if(!document.forms.editform) return; document.forms.editform.wpSave.onclick = function{ if(!document.forms.editform.wpSummary.value.replace(/^(?:\/\\*.*\\*\/)? *(.*) *$/,'$1')){			document.forms.editform.wpSummary.value = "edited page"; }	}; }

addOnloadHook(addSummary);