User:Btilm/semi.js

// function semi { document.location=mw.config.get('wgServer') + mw.config.get('wgScript') + "?title=" + wgPageName + "&action=edit&semi"; } $(function { mw.util.addPortletLink("p-cactions","javascript:semi","+semi","ca-semi","Add semi-protected keypad.",""); if (location.href.indexOf("&action=edit&semi") == -1) return;  document.getElementById('wpTextbox1').value = '\n' + document.getElementById('wpTextbox1').value;  document.getElementById('wpSummary').value = "Added vandalism icon using a semi-automated js tool created by Btilm";  document.getElementById('wpMinoredit').checked = false;  document.getElementById('editform').submit; }); //