User:Xbony2/common/autosummary.js

/** * Creates a default summary of "edited page" when without a provided summary. * * @author User:Xbony2 * Based off of: * * https://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/Force_edit_summary * * http://habbo.gamepedia.com/User:Cblair91/common.js * */ $('#wpSave').click(function{	if(!document.forms.editform.wpSummary.value.replace(/^(?:\/\\*.*\\*\/)? *(.*) *$/, '$1')){		document.forms.editform.wpSummary.value = 'edited page';	} });