User:Btilm/bt.js

function bt { document.location=mw.config.get('wgServer') + mw.config.get('wgScript') + "?title=" + wgPageName + "&action=edit&bt=yes"; } $(function { mw.util.addPortletLink("p-cactions","javascript:bt","bold","ca-bt","Bold the title",""); if (location.href.indexOf("&action=edit&bt=yes") == -1) return;  var textbox = document.getElementById('wpTextbox1').value  var bold = textbox.replace(wgTitle,"\'\'\'" + wgTitle + "\'\'\'");  document.getElementById('wpTextbox1').value = bold;  document.getElementById('wpSummary').value = "bolded title";  document.getElementById('wpMinoredit').checked = true;  document.getElementById('editform').submit; });