User:Leag/editcount.js

// /* Lien Editcount */ var tabAction = "p-cactions"; function addECButton {       if ( window.location.href.indexOf('Contributions') < 0) return; var c = document.getElementById('contentSub'); var a = c.getElementsByTagName('a'); name = a[0].innerHTML; var l = document.getElementById(tabAction); t = l.innerHTML; ind = t.toLowerCase.indexOf(""); before = t.substring(0,ind); after = t.substring(ind); pitem = ""+ " " +                "Editcount"  + " "; l.innerHTML = before + pitem + after ; } $(addECButton); //