Difference between revisions 30992519 and 31061818 on ptwiki/** * Acrescenta pequenos botões para manutenção e eliminação de páginas * @author: [[User:Danilo.mac]] * @see: [[Wikipédia:Scripts/FastButtons]] * @source: [[Wikipedia:Software/Scripts/FastButtons.js]] */ importScript('Wikipedia:Software/Scripts/FastButtons.js');⏎ ⏎ //Botões //var div=document.getElementById('editpage-specialchars'); //if ( div ) { // //} window.AddMyOwnButton=function(tbar, caption, href, imgsrc) { var ba = document.createElement('a'); ba.href = href; var img = document.createElement('img'); img.src = imgsrc; img.alt = caption; ba.appendChild(img); tbar.appendChild(ba); } window.myOwnEditButtons=function() { var tbdiv=document.getElementById('toolbar'); if ( tbdiv ) { tbdiv.appendChild(document.createTextNode(' ')); // Botao:{ER} caption = '\{\ER||2=\~\~\~\~\}'; var bas = document.createElement('a'); bas.href = 'javascript:insertTags(\'{\{ER|\',\'\<número da regra>\|2=\~\~\~\~\}}\',\'\');'; var imgs = document.createElement('img'); imgs.src = '//upload.wikimedia.org/wikipedia/commons/1/11/Button_ER.png'; imgs.alt = caption; bas.appendChild(imgs); tbdiv.appendChild(bas); } } window.myAddOnload=function(f) { if (window.addEventListener) window.addEventListener("load", f, false); else if (window.attachEvent) window.attachEvent("onload",f); } myAddOnload(myOwnEditButtons); All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://pt.wikipedia.org/w/index.php?diff=prev&oldid=31061818.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|