Nota: dopo aver pubblicato, potrebbe essere necessario pulire la cache del proprio browser per vedere i cambiamenti.

  • Firefox / Safari: tieni premuto il tasto delle maiuscole Shift e fai clic su Ricarica, oppure premi Ctrl-F5 o Ctrl-R (⌘-R su Mac)
  • Google Chrome: premi Ctrl-Shift-R (⌘-Shift-R su un Mac)
  • Internet Explorer / Edge: tieni premuto il tasto Ctrl e fai clic su Aggiorna, oppure premi Ctrl-F5
  • Opera: premi Ctrl-F5.
/* <pre> */
// Elenco dei tool da caricare. NB: La stringa deve iniziare e finire con uno spazio



var toLoad=" purg stex lks tatoo avan ptob tabs newp mjs sand log uec vpop unw popup tbar ptb cwtch cmd nms since ";


//Monobook Modulare di wikibooks ver.2.0.0.
//Lancia il vero monobook
// Vedi [[Wikibooks:Monobook.js/MonobookCompleto.js]]
// 
document.writeln('<script type="text/javascript" src="/w/index.php?title=Wikibooks:Monobook.js/MonobookCompleto.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');



//STRUMENTI EXTRA
document.writeln('<script type="text/javascript" src="/w/index.php?title=Utente:'+wgUserName+'/strumentiextra.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');

// AGGIUNGE COLLEGAMENTI NELLA TOOLBAR PERSONALE
document.writeln('<script type="text/javascript" src="/w/index.php?title=Utente:'+wgUserName+'/personaltbar.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');


//CONFIGURAZIONE POPUP
popupDelay = 1.5; // aspetta 1.5 secondi per aprirsi (modificabile)
popupHideDelay=0.3; //aspetta 0.3 secondi prima di chiudersi (modificabile)
popupRedlinkRemoval = true; // elimina i collegamenti a link rossi
popupQueriedRevertSummary = "Rollback da popup. Ripristinata la versione di $3";
popupRedlinkSummary = "Eliminato link rosso: %s";

//Mostra i Tatoo
  if ((toLoad.indexOf(" tatoo ")!=-1))
document.writeln('<script type="text/javascript" src="/w/index.php?title=Utente:'+wgUserName+'/Tatoo&action=raw&ctype=text/javascript&dontcountme=s"></script>');


/* </pre> */


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
                                                 COPIA DA QUI IN POI
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// SCRIPT PER IL REVERT DI [[wikipedia:user:Lorian|Lorian]] TRADOTTO E RIADATTATO [[utente:wim b|Wim b]]
// Revert tools by Lorian<br />
//Riadattato per wikipedia da [[utente:Wim_b|Wim b]]<br />
// VERSIONE PER ADMIN
//<pre><nowiki>
  if ((toLoad.indexOf("adrvt")!=-1))
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) {
  var message = prompt ('Scrivi un messaggio nella cronologia', '');
  window.location = 'http://it.wikipedia.org/w/index.php?title=' + _GET['title'] + '&action=edit&oldid=' + _GET['oldid'] + '&'+where+'=2&user1='+user1+'&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'); user2 = user2[0].getElementsByTagName('a')[2].innerHTML;
    document.getElementById('contentSub').innerHTML = '(<a href="http://it.wikipedia.org/w/index.php?title=' + _GET['title'] + '&action=edit&oldid=' + _GET['oldid'] + '&revert=1&user1='+user1+'">Ripristina</a> / <a href="javascript:var message = getMessage(\'revert\', \''+user1+'\');">Messaggio</a>) (<a href="http://it.wikipedia.org/w/index.php?title=' + _GET['title'] + '&action=edit&oldid=' + _GET['oldid'] + '&vandalism=1&user1='+user1+'">Vandalismo</a> / <a href="javascript:var message = getMessage(\'revert\', \''+user1+'\');">Messaggio</a>) (Avvisi: <a href="http://it.wikipedia.org/w/index.php?title=User_talk:'+user1+'&action=edit&section=new&warn=1">Test</a> / <a href="http://it.wikipedia.org/w/index.php?title=User_talk:'+user1+'&action=edit&section=new&warn=2">Vandalismo</a> / <a href="http://it.wikipedia.org/w/index.php?title=User_talk:'+user1+'&action=edit&section=new&warn=3">Spam</a> / <a href="http://it.wikipedia.org/w/index.php?title=User_talk:'+user1+'&action=edit&section=new&warn=4">WNF</a> / <a href="http://it.wikipedia.org/w/index.php?title=User_talk:'+user1+'&action=edit&section=new&warn=5">WNB</a> / <a href="http://it.wikipedia.org/w/index.php?title=User_talk:'+user1+'&action=edit&section=new&warn=6">IP Vandalismo</a>) (Admin: <a href="http://it.wikipedia.org/wiki/Speciale:Blocca/'+user1+'">Blocca utente</a> / <a href="http://it.wikipedia.org/w/index.php?title=Speciale%3ADeletedContributions&target='+user1+'&namespace=">Contributi cancellati</a> / <a href="http://it.wikipedia.org/w/index.php?title=' + _GET['title'] + '&action=protect">Proteggi pagina</a> / <a href="http://it.wikipedia.org/w/index.php?title=' + _GET['title'] + '&action=delete">Cancella pagina</a> )';
  } else if (location.href.match(/revert=1/)) {
    document.getElementById('wpSummary').value = 'Ripristinata la versione ' + _GET['oldid']+' di [[Special:Contributions/'+_GET['user1']+'|'+_GET['user1']+']]';
    document.getElementById('editform').submit();
  } else if (location.href.match(/revert=2/)) {
    document.getElementById('wpSummary').value = 'Ripristinata la versione ' + _GET['oldid']+' di [[Special:Contributions/'+_GET['user1']+'|'+_GET['user1']+']] ('+_GET['message']+')';
    document.getElementById('editform').submit();
  } else if (location.href.match(/vandalism=1/)) {
    document.getElementById('wpSummary').value = 'Ripristinata la versione ' + _GET['oldid']+' di [[Special:Contributions/'+_GET['user1']+'|'+_GET['user1']+']] per vandalismo';
    document.getElementById('editform').submit();
  } else if (location.href.match(/vandalism=2/)) {
    document.getElementById('wpSummary').value = 'Ripristinata la versione ' + _GET['oldid']+' di [[Special:Contributions/'+_GET['user1']+'|'+_GET['user1']+']] ('+_GET['message']+') per vandalismo';
    document.getElementById('editform').submit();
  } else if (location.href.match(/warn=1/)) {
    document.getElementById('wpSummary').value = 'Avviso test';
    document.getElementById('wpTextbox1').value = '{{test}} ~~'+'~~';
    document.getElementById('editform').submit();
  } else if (location.href.match(/warn=2/)) {
    document.getElementById('wpSummary').value = 'Avviso vandalismo';
    document.getElementById('wpTextbox1').value = '{{vandalismo}} ~~'+'~~';
    document.getElementById('editform').submit();
  } else if (location.href.match(/warn=3/)) {
    document.getElementById('wpSummary').value = 'spam';
    document.getElementById('wpTextbox1').value = '{{Spam}} ~~'+'~~';
    document.getElementById('editform').submit();
  } else if (location.href.match(/warn=4/)) {
    document.getElementById('wpSummary').value = 'WNF';
    document.getElementById('wpTextbox1').value = '{{WNF}} ~~'+'~~';
    document.getElementById('editform').submit();
  } else if (location.href.match(/warn=5/)) {
    document.getElementById('wpSummary').value = 'WNB';
    document.getElementById('wpTextbox1').value = '{{WNB}} ~~'+'~~';
    document.getElementById('editform').submit();
  } else if (location.href.match(/warn=6/)) {
    document.getElementById('wpSummary').value = 'IP Vandalismo';
    document.getElementById('wpTextbox1').value = '{{IP Vandalismo}} ~~'+'~~';
    document.getElementById('editform').submit();
  }
});

//SCRIPT VPOPSPEED
document.write('<script type="text/javascript" src="'
+ 'http://it.wikipedia.org/w/index.php?title=Utente:Henna/VPopSpeed.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

document.write('<script type="text/javascript" src="'
+ 'http://nl.wikipedia.org/w/index.php?title=Gebruiker:Valhallasw/hennading.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
/////////////////////////////////////////////////////////////////////////////////////////////

//ADD AN "INVERT" BUTTON IN UNDELETION PAGE (SOURCE: HTTP://EN.WIKIPEDIA.ORG/WIKI/USER:CRYPTIC/TOGGLEUNDELETE.JS)
  if ((toLoad.indexOf("adtog")!=-1))
function toggle_undelete()
{
  var f = document.getElementById("undelete");
  if (f)
    {
      var inputs = f.getElementsByTagName("input");
      var i;
      for (i = 0; i < inputs.length; ++i)
        if (inputs[i].type == "checkbox")
          inputs[i].checked = !inputs[i].checked;
    }
}

function setup_toggle_undelete()
{
  if (document.title.indexOf("Vedi e recupera pagine cancellate") == 0)
    {
      var f = document.getElementById("undelete");
      if (f)
        {
          var h2 = f.getElementsByTagName("h2")[0];
          if (h2)
            {
              var button = document.createElement('input');
              button.type = "button";
              button.value = "Inverti";
              button.setAttribute('onClick', 'toggle_undelete()');
              f.insertBefore(button, h2);
            }
        }
    }
}

$(setup_toggle_undelete);

/*
  * '''Restauration Deluxe'''
  *
  * COCHER/DÉCOCHER RAPIDEMENT LES CASES POUR RESTAURER UN ARTICLE
  *
  * Auteur : GôTô
  * Dernière révision : 11 mai 2007
  */

// Code :<source lang="javascript" line="">
  if ((toLoad.indexOf("adrus")!=-1))
function UndeleteSelectAll()
{
        if(wgCanonicalSpecialPageName != 'Undelete') return;
        var title2 = document.getElementsByTagName('h2');
        var all = document.createElement('input');
        all.setAttribute('type', 'checkbox');
        all.setAttribute('onclick', 'SelectAllInputs(this.checked)');
        all.setAttribute('title', 'Seleziona/deseleziona tutte');
        title2[title2.length-1].appendChild(all);
        all.click();
}

function SelectAllInputs(bool)
{
        var inputs = document.getElementById('undelete').getElementsByTagName('input');
        for (var cpt = 0 ; cpt < inputs.length ; cpt++)
        {
                inputs[cpt].checked = bool;
        }
}

$(UndeleteSelectAll);

//TAB PER GLI ADMIN-----------------------------------
$(function (){
var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
addlimenu(tabs, 'Admin', 'utils'); //puoi cambiare 'Utilità' in qualcos'altro, ma non cambiare 'utils'
var utils = document.getElementById('utils').getElementsByTagName('ul')[0];
 
//Una riga per ogni voce del menu
addlilink(utils,'/wiki/Speciale:DeletedContributions','contributi eliminati', ''); // Esempio di collegamento nel menu
addlilink(utils,'/wiki/Speciale:Blocca','blocca utente', '');
addlilink(utils,'/wiki/Speciale:Importa','importa pagina', '');
addlilink(utils,'/wiki/Speciale:Ripristina','recupera pagina', '');
});
  
//Add an "cancel text" button in deletion page (thanks Utente:Lusum)
 
function cancel_text()
{
  var f = document.getElementById("deleteconfirm");
  if (f)
  {
    var input = document.getElementById("wpReason");
    input.value="";
  }
}
 
function setup_cancel_text()
{
  if (document.title.indexOf("Conferma cancellazione") == 0)
  {
    var f = document.getElementById("deleteconfirm");
    if (f)
    {
      var h2 = f.getElementsByTagName("input")[2];
      if (h2)
      {
        var button = document.createElement('input');
        button.type = "button";
        button.value = "Cancella Testo";
        button.setAttribute('onClick', 'cancel_text()');
        f.appendChild(button, h2);
      }
    }
  }
}
 
$(setup_cancel_text);
 
function setup_motivazione() {
    if (document.title.indexOf("Conferma cancellazione") == 0)
    {
        var p = document.getElementById("deleteconfirm");
        if (p)
        {
            var h2 = p.getElementsByTagName("input")[2];
            if (h2)
            {
                var i;
                arrayMotivation = new Array("cancellazione immediata ", "cancellazione ordinaria [[Wikipedia:Pagine_da_cancellare/ ]]", "unverified > 7 giorni", "Duplicata su commons ", "copyviol ", "tecnica per rimozione copyviol ", "vandalismo", "test", "senza senso", " recupero cronologia", "da aiutare da più di 3 mesi", "contenuti minimi", "stub da più di 6 mesi", "articolo contenente solo frasi offensive e/o volgari", "pagina totalmente scritta in una lingua straniera", "SPAM", "redirect inutile", "redirect orfano", "immagine doppia");
 
                var motivazione = document.createElement('select');
                motivazione.name = 'popupSelect';
                motivazione.id = 'motivazione';
                motivazione.size = 1;
                var option;
                // Carica nel combo box il contenuto della variabile globale
                for (i = 0; i < arrayMotivation.length; i++){
                    option = new Option(arrayMotivation[i],' ');
                    option.value = arrayMotivation[i];
                    motivazione.options[motivazione.length] = option;
                }
                p.appendChild(motivazione);
                var button = document.createElement('input');
                button.type = "button";
                button.value = "Ok";
                button.setAttribute('onClick', 'inserisci_motivazione()');
                p.appendChild(button);
            }
        }
    }
 
}
 
function inserisci_motivazione() {
    motivazione = document.getElementById('motivazione').value;
    var f = document.getElementById("deleteconfirm");
    if (f)
    {
        var input = document.getElementById("wpReason");
        input.value=motivazione;
    }
}
 
$(setup_motivazione);
 
//</source>