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

Contenuto cancellato Contenuto aggiunto
utils non più necessario
fix vari
Riga 1:
/* jshint maxerr:100000 */
/*
==LiveWP==
Riga 83 ⟶ 84:
var DELETE_REVISION = 2 << 25; //RevDelete
 
var lstSysop = new Array()[]; // Sysop list;
var lstContact = new Array()[]; // Contact list;
var lstIPClass = new Array()[]; // IPClass list;
var lstRevoc = new Array()[]; // Reverted list;
var lstHidden = new Array()[]; // Hidden users list;
 
// Is user Sysop;
Riga 95 ⟶ 96:
 
// Watchlist;
var lstSuivi = new Array()[];
var lstSuiviHH = new Array()[];
var lstSuivirevid = new Array()[];
var lstSuivioldid = new Array()[];
var lstSuivircid = new Array()[];
}
 
Riga 178 ⟶ 179:
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {
xmlhttp = false;
}
}
Riga 188 ⟶ 189:
wpajax.httpComplete(xmlhttp, bundle);
};
xmlhttp.open(bundle.method ? bundle.method : "GET", bundle.url, !!bundle.async == false ? false : true);
if (bundle.headers) {
for (var field in bundle.headers)
Riga 227 ⟶ 228:
}
}
elementcount++;
}
if (!TheElement) return null;
Riga 246 ⟶ 247:
} else {
bC = getElementWithId('bodyContent', 'div', Temp);
if (bC === null) bC = getElementWithId('article', 'div', Temp);
if (bC === null) bC = getElementWithId('mw_contentholder', 'div', Temp);
}
return bC;
Riga 263 ⟶ 264:
}
return string;
};
 
/* </source>
Riga 318 ⟶ 319:
var upage = page.replace(new RegExp(/\'/g), "\\'");
 
if (lD[0] === null)
LP.innerHTML = bC.innerHTML;
else {
Riga 330 ⟶ 331:
for (var n = 0; n < lav; n++)
avant = avant + avantEl[n].innerHTML + "<br />";
for (var n = 0; n < lap; n++)
apres = apres + apresEl[n].innerHTML + "<br />";
LP.innerHTML = "<table width='100%'><tr><td width='50%' class='diff-deletedline'>" + avant + "</td><td class='diff-addedline'>" + apres + "</td></tr></table>";
Riga 348 ⟶ 349:
 
var asNextDiff = getElementWithId("differences-nextlink", "*", bC);
if (asNextDiff === null) {
var optAvert = "";
var optl = lstAvert.length;
Riga 438 ⟶ 439:
document.getElementById('LiveRevertMessage').disabled = true;
var testo;
if (type == "copyviol") {
var testo = '{{Cancelcopy|' + document.getElementById('LiveRevertMessage').value + '}}\n\n';
} else {
var testo = '{{Cancella subito|' + document.getElementById('cancimmAvert').value + '}}\n\n';
}
 
Riga 490 ⟶ 492:
action: 'edit',
title: page,
appendtext: testo,
summary: summary
} );