User:Btilm/italic.js

addOnloadHook(function { addPortletLink("p-cactions",mw.config.get('wgServer') + mw.config.get('wgScript') + "?title=" + wgPageName + "&action=edit&dt=true","it1","ca-it1","it1","");

if (location.href.indexOf("&action=edit&dt=true") == -1) return; document.getElementById('wpTextbox1').value = "\n" + document.getElementById('wpTextbox1').value; document.getElementById('wpSummary').value = "added italic title tag"; document.getElementById('wpMinoredit').checked = true; document.getElementById('editform').submit; });