User:Thedjatclubrock/blank.js

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

function blankpage { document.editform.wpTextbox1.value = ""; //Add the base text for the sandbox document.editform.wpSummary.value = "User:thedjatclubrock: blanked the page"; //Make a descriptive edit summary document.editform.wpMinoredit.checked = false; //Make it a minor edit document.editform.wpSave.click; //Submit it! } function addBlankTab { { mw.util.addPortletLink('p-cactions', 'javascript:blankpage', 'Blank :)', 'ca-reset', "Blank the page"); } }

addOnloadHook(addBlankTab);