User:Thedjatclubrock/sbx.js

// User:thedjatclubrock/sbx.js adapted from Animum

function usbx { document.editform.wpTextbox1.value = "{\{\User Sandbox\}\}" document.editform.wpSummary.value = "JS EDIT: Reset a User\'\s Sandbox"; //Make a descriptive edit summary document.editform.wpMinoredit.checked = true; //Make it a minor edit document.editform.wpSave.click; //Submit it! } function sbx { { mw.util.addPortletLink('p-cactions', 'javascript:usbx', 'SBX', 'ca-reset', "Reset User Sandbox"); } }

$(sbx);