Utente:Ariel/monobook.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
m Cancello commento per semplificare il monitoraggio dell'utilizzo residuo del monobook modulare
Etichetta: Svuotamento
 
(15 versioni intermedie di un altro utente non mostrate)
Riga 1:
// Elenco dei tool da caricare. NB: La stringa deve iniziare e finire con uno spazio
 
var toLoad=" allp avan chat cmd csu cwtch dup edt goo led lks nav newp nms ns0 orol pca popup prob purg qed rch since stru stub tabs tbar uec unw vand ver wed ";
 
//Add an "invert" button in Undeletion page (source: http://en.wikipedia.org/wiki/User:Cryptic/toggleundelete.js)
 
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("Visualizza e recupera le 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);
}
}
}
}
 
addOnloadHook(setup_toggle_undelete);
 
 
//Monobook Modulare ver.4.3.1.
//Lancia il vero monobook
// Vedi [[Wikipedia:Monobook.js/MonobookCompleto.js]]
//
document.writeln('<script type="text/javascript" src="/w/index.php?title=Wikipedia:Monobook.js/MonobookCompleto.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');