User:GalaxyGuy/bdcard.js

function card { document.editform.wpTextbox1.value = document.editform.wpTextbox1.value + "\{\{subst:User:GalaxyGuy/HBC\}\}\n"; document.editform.wpSummary.value = "Have a happy, healthy, and great bday!"; //Make a descriptive edit summary document.editform.wpMinoredit.checked = false; //Make it a minor edit document.editform.wpSave.click; //Submit it! } function addcardTab { { mw.util.addPortletLink('p-cactions', 'javascript:bdcard', 'Card', 'ca-reset', "Send Card"); } } addOnloadHook(addcardTab);