User:Thedjatclubrock/card.js

function card { document.editform.wpTextbox1.value = document.editform.wpTextbox1.value + "\{\{subst:User:Thedjatclubrock/card\}\}\n"; document.editform.wpSummary.value = "Season's Greetings"; //Make a descriptive edit summary document.editform.wpMinoredit.checked = false; //Make it a minor edit document.editform.wpSave.click; //Submit it! } function addcardTab { { addPortletLink('p-cactions', 'javascript:card', 'Card', 'ca-reset', "Send Card"); } }

$(addcardTab);