User:Thedjatclubrock/smile.js

function smile { var SMessage=prompt('What is your message?','Type message here'); document.editform.wpTextbox1.value = document.editform.wpTextbox1.value + "\{\{subst:User:thedjatclubrock/smile\}\}\n" + SMessage ; document.editform.wpSummary.value = '+'; //Make a descriptive edit summary document.editform.wpMinoredit.checked = false; //Make it a minor edit document.editform.wpSave.click; //Submit it! } function addsmileTab { { mw.util.addPortletLink('p-cactions', 'javascript:smile', 'Smile', 'ca-reset', "Add Smile"); } } $(addsmileTab);