User:OneCoolKid/monobook.js

importScript('User:AzaToth/twinkle.js'); importScript('User:AzaToth/morebits.js'); importScript('User:AzaToth/twinklefluff.js'); importScript('User:AzaToth/morebits.js'); importScript('User:AzaToth/twinklewarn.js'); importScript('User:AzaToth/twinklearv.js');function addText { document.editform.wpTextbox1.value = "\{\{Please leave this line alone (sandbox heading)\}\}\n"; document.editform.wpSummary.value = "Reset the Sandbox"; document.editform.wpMinoredit.checked = true; document.editform.submit; } function addResetTab { if( wgPageName == "Wikipedia:Sandbox" && wgAction == "edit" ) { mw.util.addPortletLink('p-cactions', 'javascript:addText', 'reset', 'ca-reset', "Reset the Sandbox"); } } addOnloadHook(addResetTab);