User:AllanHainey/monobook.js

if (window.addEventListener) { window.addEventListener("load",addAuthorTemplateLink,false); } else if (window.attachEvent) { window.attachEvent("onload",addAuthorTemplateLink); }

// function addAuthorTemplateLink { if(document.getElementById) { var loc = '' + window.location; if(loc.indexOf("action=edit") > -1 || loc.indexOf("action=submit") > -1) { var toolbar = document.getElementById('toolbar'); var a = document.createElement('a'); a.setAttribute('href',"javascript:insertTags(,,'');"); var img = document.createElement('img'); img.setAttribute('src', "/skins-1.5/common/images/button_headline.png"); img.setAttribute('alt', "Author Template"); img.setAttribute('title', "Author Template"); img.setAttribute('border', "0"); img.setAttribute('height', "22"); img.setAttribute('width', "23"); a.appendChild(img); toolbar.appendChild(a); } } } //