User:Kaptain K. Rool/monobook.js


 * JS - add [edit] link in leading section: Add this before "onload=function{" thing that I've mentioned above in warning:"function editer{editlead=document.getElementById('firstHeading');if(editlead){editlead.innerHTML+=' [edit] '}} |undefined" Add the rest as always, inside "onload=function{" and "}""editab=document.getElementsById('ca-edit');editab=editab?editab.getElementsByTagName('a')[0].innerHTML:'';if(editab=='Edit'){if(wgIsArticle){rig=wgRestrictionEdit;gir=wgUserGroups;if(rig.length==0){editer}else{for(i=0;i<rig.length;i++){ for(z=0;z<gir.length;z++){if(rig[i]==gir[z]){editer;break}}}}}}|undefined"