Notu:Post publikigo forviŝu la kaŝmemoron de via foliumilo por vidi la ŝanĝojn.

  • Firefox / Safari: Premu majuskligan klavon klakante Reŝarĝi, aŭ premu aŭ Stir-F5Stir-R (⌘-R kun Makintoŝo)
  • Google Chrome: Premu Stir-majuskligklavon-R (⌘-Majuskligklavo-R kun Makintoŝo)
  • Interreta Esplorilo / Edge: Premu Stir klakante Refreŝu, aŭ premu Stir-F5
  • Opera: Premu Stir-F5.
//<pre>
var pagina =''; var mot=''; var txt=''; var botones=''; var usuario=''; var temporal='';
var sep="|"; var biblio=false;
var ufb = ', usando [[Usuario:Racso/Fastbuttons|Fastbuttons]]';
var dire="http://es.wikipedia.org/w/index.php?title=";
var fin_otro="edit&borrar=otro-";
var fin_aviso="edit&aviso=";
var vec="http://es.wikipedia.org/w/index.php?title=Wikipedia:Vandalismo_en_curso&action=edit&section=1&motivoVEC=";
var textopruebas="Aviso:\n(nada): Prueba\n0a: Wikietiqueta\n0b: Estilo\n0c: Spam\n2: Ediciones sin sentido\n2a: Blanqueo\n3: Detente\n4: Última advertencia\n5: Bloqueo";
var FBpersonales = false; //¿Activar config personal?
var FBpruebas= true;    //Pruebas de edición
var FBblanco = true;    //Prueba de edición blanqueadas
var FBne = true;    //No enciclopédico
var FBinfra = true;    //Infraesbozo
var FBautopromo = true;    //Página de usuario que viola WP:PU
var FBotro = true;    //Botón universal: otros motivos
var FBwikificar = true;//Wikificar
var FBwikci = true;    //Wikcionario
var FBborrar = true;    //Borrado instantáneo
var FBvec = true;    //Reportar en WP:VEC
var FBaviso = true;    //Aviso al usuario

/* Toma de datos */

for (i=0; i<wgUserGroups.length; i++)
   {  if (wgUserGroups[i] == "sysop") biblio=true; }

pagina=encodeURI(wgPageName);
if (pagina.match("&"))
{
pagina=pagina.replace("&","%26");
}
dire=dire+pagina+"&action=";
usuario=pagina.split(":")[1];


if (pagina=="Especial:Contributions")
{usuario=location.href.substring(location.href.indexOf('Contributions/')+14,location.href.length);}



/* Inicio */

if (biblio==false)
{
    tmp='';

    if (FBpruebas){tmp+= '[<a href='+dire+'edit&borrar=pruebas>Pruebas</a>] '; }
     if (FBblanco){tmp+= '[<a href='+dire+'edit&borrar=blanco>En blanco</a>] '; }
    if (FBne){tmp+= '[<a href='+dire+'edit&borrar=NE>No enciclopédico</a>] '; }
    if (FBinfra){tmp+= '[<a href='+dire+'edit&borrar=infra>Infraesbozo</a>] '; }
     if (FBautopromo){tmp+= '[<a href='+dire+'borrar=autopromo>Autopromoción</a>] '; }
    if (FBotro){tmp+= '[<a onclick="mot=prompt(/Motivo/);location.href=dire + fin_otro +encodeURI(mot) ;"> OTRO </a>] ';}

    if (tmp!='') { botones= botones + 'Destruir: ' + tmp + '<br>';}

}

if (biblio)
{
tmp='';

    if (FBborrar){tmp+= '[<a href='+dire+'delete&rapido=si>¡Borrar!</a>] '; }

if (tmp!=''){botones = botones + 'Para biblios: ' +tmp+'<br>';}
}


tmp='';

if (FBwikificar){tmp+= '[<a href='+dire+'edit&plant=wikificar>Wikificar</a>] '; }
if (FBwikci){tmp+= '[<a href='+dire+'edit&plant=wikci>Wikci</a>] '; }

if (tmp!=''){botones = botones + 'Plantillas: ' +tmp+'<br>';}


tmp='';

if (FBaviso){tmp+='[<a onclick="mot=prompt(textopruebas);location.href=dire + fin_aviso +encodeURI(mot) ;">Advertencia</a>] ';}

if (biblio==false)
{if (FBvec){tmp+= '[<a onclick=";mot=prompt(/Motivo/);location.href=vec + usuario + sep + mot;">Reportar en VEC</a>] ';}}

if (tmp!=''){botones = botones + 'Especiales: ' +tmp+'<br>';}


/* Botones funcionando */

$(function ()
{
 
if (document.getElementById('contentSub').innerHTML!='')
{document.getElementById('contentSub').innerHTML+='<br>';}

document.getElementById('contentSub').innerHTML = document.getElementById('contentSub').innerHTML+ botones;

 
if (location.href.match("borrar=blanco")) 
{
    txt=document.getElementById("wpTextbox1").value;
    if (txt.match("{destruir")==null)
    {
        txt= '{{destruir|Pruebas de edición}}\n' + txt;
        document.getElementById ("wpTextbox1").value=txt;
        document.editform.wpSummary.value = 'Destruir: pruebas de edición'+ufb;
        document.editform.submit();
    }
}
 
  
else if (location.href.match("borrar=pruebas")) 
{
    txt=document.getElementById("wpTextbox1").value;
    if ((txt.match("{destruir")==null) && (txt!=""))
    {
        txt= '{{destruir|Pruebas de edición}}\n' + txt;
        document.getElementById ("wpTextbox1").value=txt;
        document.editform.wpSummary.value = 'Destruir: pruebas de edición'+ufb;
        document.editform.submit();
    }
}
 
 
else if (location.href.match("borrar=irrelev")) 
{
    txt=document.getElementById("wpTextbox1").value
    if ((txt.match("{destruir")==null) && (txt!=""))
    {
        txt= '{{destruir|No enciclopédico}}\n' + txt
        document.getElementById ("wpTextbox1").value=txt;
        document.editform.wpSummary.value = 'Destruir: no enciclopédico'+ufb;
        document.editform.submit();
    }
}
 
 
else if (location.href.match("borrar=infra")) 
{
    txt=document.getElementById("wpTextbox1").value
    if ((txt.match("{destruir")==null) && (txt!=""))
    {
        txt= '{{destruir|Infraesbozo}}\n' + txt
        document.getElementById ("wpTextbox1").value=txt;
        document.editform.wpSummary.value = 'Destruir: infraesbozo'+ufb;
        document.editform.submit();
    }
}
 
 
else if (location.href.match("borrar=autopromo"))
{
    txt=document.getElementById("wpTextbox1").value
    if ((txt.match("{destruir")==null) && (txt!=""))
    {
        txt= '{{destruir|Artículo promocional/de vanidad}}\n' + txt
        document.getElementById ("wpTextbox1").value=txt;
        document.editform.wpSummary.value = 'Destruir: Autopromocional'+ufb;
        document.editform.submit();
    }
}
 
else if (location.href.match("borrar=otro")) 
{
    txt=document.getElementById("wpTextbox1").value
    if ((txt.match("{destruir")==null) && (txt!=""))
    {
        mot=location.href.substring(location.href.indexOf('otro-')+5, location.href.length)
        if (mot!=null)
        {
            txt='{{destruir|'+decodeURI(mot)+'}}\n'+txt;
            document.getElementById ("wpTextbox1").value=txt;
            document.editform.wpSummary.value = 'Destruir: '+decodeURI(mot)+ufb;
             document.editform.submit();
        }
    }
}
 
 

else if (location.href.match("plant=wikificar")) 
{
    txt=document.getElementById("wpTextbox1").value
    if ((txt.match("{destruir")==null) && (txt!=""))
    {
        txt='{{wikificar}}\n'+txt;
        document.getElementById ("wpTextbox1").value=txt; 
        document.editform.wpSummary.value = 'Wikificar'+ufb;
        document.editform.submit();
    } 
}
 


else if (location.href.match("plant=wikci")) 
{
    txt=document.getElementById("wpTextbox1").value
    if ((txt.match("{destruir")==null) && (txt!=""))
    {
        txt='{{wikci}}\n'+txt;
        document.getElementById ("wpTextbox1").value=txt;
        document.editform.wpSummary.value = 'Al wikcionario'+ufb;
        document.editform.wpSave.click();
    }
}
 
 
else if (location.href.match("rapido=si")) 
{
    document.getElementById ("wpConfirmB").click();
}



else if (location.href.match("motivoVEC=")) 
{
    var txt2;
    var strt="Añade la siguiente solicitud debajo de esta línea.-->";
    mot=location.href.substring(location.href.indexOf('motivoVEC=')+10, location.href.length);
    txt=document.getElementById("wpTextbox1").value;
    txt2=txt.split(strt).join(strt+"\n\n{{subst:Reportevandalismo|"+decodeURI(mot)+"|~~~~}}");
    document.getElementById("wpTextbox1").value=txt2;
    document.editform.wpSummary.value = 'Reportando'+ufb;
    document.editform.submit();
}

else if (location.href.match("aviso=")) 
{
    txt=document.getElementById("wpTextbox1").value;
    mot=location.href.substring(location.href.indexOf('aviso=')+6, location.href.length);
    txt=txt+'\n\n{{prueba'+decodeURI(mot)+'}} --~~~~';
    document.getElementById ("wpTextbox1").value=txt;
    document.editform.wpSummary.value = 'Aviso al usuario'+ufb;
    document.editform.submit();
}

});


//Fuente: en:User:Lorian/monobook.js, y en pequeña medida, Usuario:Axxgreazz/reversion.js
 
function getElementsByClass(searchClass,node,tag) {
  //Function from http://www.dustindiaz.com/getelementsbyclass/
  var classElements = new Array();
  if ( node == null )
    node = document;
  if ( tag == null )
    tag = '*';
  var els = node.getElementsByTagName(tag);
  var elsLen = els.length;
  var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
  for (i = 0, j = 0; i < elsLen; i++) {
    if ( pattern.test(els[i].className) ) {
      classElements[j] = els[i];
      j++;
    }
  }
  return classElements;
}
 
//_GET code from NoGray JS Library http://www.nogray.com/new_site/
var _GET = new Array();
var _uri = location.href;
 
var _temp_get_arr = _uri.substring(_uri.indexOf('?')+1, _uri.length).split("&");
 
var _temp_get_arr_1 = new Array();
 
for(_get_arr_i=0; _get_arr_i<_temp_get_arr.length; _get_arr_i++){
  _temp_get_arr_1 = _temp_get_arr[_get_arr_i].split("=");
  _GET[decodeURI(_temp_get_arr_1[0])] = decodeURI(_temp_get_arr_1[1]);
}
 
delete _uri; delete _temp_get_arr; delete _temp_get_arr_1;
 
function getMessage (where, user1, user2)
{
  var message = prompt ('¿Qué mensaje te gustaría dejar?', '');
  window.location = '/w/index.php?title=' + _GET['title'] + '&action=edit&oldid=' + _GET['oldid'] + '&'+where+'=2&user1='+user1+'&user2='+user2+'&message='+message;
}
 
$(function (){
  if (location.href.match(/diff=/)) {
    // Get username of submitter
    var user1 = getElementsByClass('diff-otitle',null,'td'); user1 = user1[0].getElementsByTagName('a')[2].innerHTML;
    var user2 = getElementsByClass('diff-ntitle',null,'td'); 
    if (user2[0].getElementsByTagName('a')[2].href.indexOf ('undo=') != -1)
    {   user2 = user2[0].getElementsByTagName('a')[3].innerHTML; }
    else
    {   user2 = user2[0].getElementsByTagName('a')[2].innerHTML; }

      var oldid = getElementsByClass('diff-otitle',null,'td'); 
      oldid = oldid[0].getElementsByTagName('a')[0].href.split("oldid=")[1];
 
    document.getElementById('contentSub').innerHTML = '(<a href="/w/index.php?title=' + _GET['title'] 
    + '&action=edit&oldid=' + oldid + '&revert=1&user1=' + user1 
    + '&user2=' + user2 + '" title="Revertir a la revisión anterior">' 
    + '<span style="color:blue">Revertir</span></a> / <a href="javascript:var message = getMessage(\'revert\', \'' + user1 
    + '\', \'' + user2 + '\');" title="Revertir dejando un mensaje">' 
    + '<span style="color:blue">Mensaje</span></a>) (<a href="/w/index.php?title=Usuario_Discusi%C3%B3n:' + user2 
    + '&action=edit&warn=1" title="Artículo vandálico"><span style="color:green">' 
    + 'Aviso vand.</span></a> / <a href="/w/index.php?title=Usuario_Discusi%C3%B3n:' + user2 
    + '&action=edit&warn=2" title="Ediciones arbitrarias"><span style="color:green">' 
    + 'Prueba2</span></a> / <a href="/w/index.php?title=Usuario_Discusi%C3%B3n:' + user2 
    + '&action=edit&warn=3" title="Blanqueos"><span style="color:green">Prueba2a</span></a>' 
    + ' / <a href="/w/index.php?title=Usuario_Discusi%C3%B3n:' + user2 
    + '&action=edit&warn=4" title="Vandalismo obvio"><span style="color:red">' 
    + 'Planvand</span></a> / <a href="/w/index.php?title=Usuario_Discusi%C3%B3n:' + user2 
    + '&action=edit&warn=5" title="Por favor detente"><span style="color:red">' 
    + 'Prueba3</span></a> / <a href="/w/index.php?title=Usuario_Discusi%C3%B3n:' + user2 
    + '&action=edit&warn=6" title="Última advertencia"><span style="color:red">Prueba 4</span></a>)';
  }
    else if (location.href.match(/revert=1/)) {
    document.getElementById('wpSummary').value = 'Revertidos los cambios efectuados a la versión ' + _GET['oldid'] + ' de [[Usuario:' + _GET['user1'] + '|' + _GET['user1'] + ']]' 
  + ' usando una [[Ayuda:Botonera|BP]].';
    document.getElementById('editform').submit();
  } else if (location.href.match(/revert=2/)) {
    document.getElementById('wpSummary').value = 'Revertidos los cambios efectuados a la versión ' + _GET['oldid'] + ' de [[Usuario:' + _GET['user1'] + '|' + _GET['user1'] + ']] ' 
  + ' usando una [[Ayuda:Botonera|BP]]. (' + _GET['message'] + ')';
    document.getElementById('editform').submit();
  } else if (location.href.match(/warn=1/)) {
    document.getElementById('wpSummary').value = 'Aviso al usuario usando una [[Ayuda:Botonera|botonera personalizada]].';
    document.getElementById('wpTextbox1').value = document.getElementById('wpTextbox1').value + '\n{{sub'+'st:Aviso vandalismo}} —~~'+'~~';
    document.getElementById('editform').submit();
  } else if (location.href.match(/warn=2/)) {
    document.getElementById('wpSummary').value = 'Aviso al usuario usando una [[Ayuda:Botonera|botonera personalizada]].';
    document.getElementById('wpTextbox1').value = document.getElementById('wpTextbox1').value + '\n{{sub'+'st:Prueba2}} —~~'+'~~';
    document.getElementById('editform').submit();
  } else if (location.href.match(/warn=3/)){
    document.getElementById('wpSummary').value = 'Aviso al usuario usando una [[Ayuda:Botonera|botonera personalizada]].';
    document.getElementById('wpTextbox1').value = document.getElementById('wpTextbox1').value + '\n{{sub'+'st:Prueba2a}} —~~'+'~~';
    document.getElementById('editform').submit();
  } else if (location.href.match(/warn=4/)){
    document.getElementById('wpSummary').value = 'Aviso al usuario usando una [[Ayuda:Botonera|botonera personalizada]].';
    document.getElementById('wpTextbox1').value = document.getElementById('wpTextbox1').value + '\n{{sub'+'st:Usuario:Tomatejc'+'/'+'Planvand}} —~~'+'~~';
    document.getElementById('editform').submit();
  } else if (location.href.match(/warn=5/)){
    document.getElementById('wpSummary').value = 'Aviso al usuario usando una [[Ayuda:Botonera|botonera personalizada]].';
    document.getElementById('wpTextbox1').value = document.getElementById('wpTextbox1').value + '\n{{sub'+'st:Prueba3}} —~~'+'~~';
    document.getElementById('editform').submit();
  } else if (location.href.match(/warn=6/)){
    document.getElementById('wpSummary').value = 'Aviso al usuario usando una [[Ayuda:Botonera|botonera personalizada]].';
    document.getElementById('wpTextbox1').value = document.getElementById('wpTextbox1').value + '\n{{sub'+'st:Prueba4}} —~~'+'~~';
    document.getElementById('editform').submit();
  }
});


//</pre>