Wikipedia:Monobook.js/LiveRC.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Importo direttamente utils...
-funzioni obsolete
Riga 434:
link.style.textDecoration = "none";
document.getElementById('LiveRevertMessage').disabled = true;
var message = document.getElementById('LiveRevertMessage').value;
if (type == "copyviol") {
var messagetesto = '{{Cancelcopy|' + document.getElementById('LiveRevertMessage').value + '}}\n\n';
} else {
var testo = '{{Cancella subito|' + document.getElementById('cancimmAvert').value + '}}\n\n' + testo;
}
 
new mw.Api().postWithEditToken( {
var testo = getpagecontent(page);
action: 'edit',
 
title: page,
if (type == "copyviol")
prependtext: testo
testo = '{{Cancelcopy|' + message + '}}\n\n' + testo;
setpagecontent(page, testo, summary: "LiveRC : Cancella subito");
else
} );
testo = '{{Cancella subito|' + document.getElementById('cancimmAvert').value + '}}\n\n' + testo;
 
setpagecontent(page, testo, "LiveRC : Cancella subito");
}