User:TheSatanicSanta/common.js

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