User:Fox/minor.js

$(function {   var uhoh = decodeURIComponent(UrlParameters["uhoh"].replace(/_/g, " "));    document.forms["editform"].wpTextbox1.value += "\{\{subst:User:Fluffernutter/c\}\}";    document.forms["editform"].wpSummary.value = 'Hi!';    document.forms["editform"].wpMinoredit.checked = false;    document.forms["editform"].submit; });

$(function {       addPortletLink("p-tb", wgScript + "?title=" + wgPageName + "&action=edit&uhoh=1", "uhoh", "ca-uhoh", "Warn user with uhoh template" ,"", ""); });