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

Contenuto cancellato Contenuto aggiunto
m Rimetto fix, il bug per il momento c'è ancora.
evito RegExp().compile (deprecato). Dovrebbe risolvere i problemi di compatibilità con Chrome
Riga 183:
var string = this;
for (var i=0; i<chars.length; i++) {
regex.compile = new RegExp(chars[i], "g");
string = string.replace(regex, '&' + entities[i] + ';');
}
Riga 841:
var match, regex = new RegExp();
if (lrcTZ) {
regex.compile( = /^([-+])?(\d?\d):?(\d\d)$/);
match = regex.exec(lrcTZ);
if (!match) {
Riga 853:
tz = -now.getTimezoneOffset();
}
regex.compile( = /^\d\d\d\d-\d\d-\d\dT(\d\d):(\d\d):\d\dZ$/);
match = regex.exec(timestamp);
if (!match) {
Riga 962:
var duration = duration;
 
regex.compile( = /\'/g);
regex2.compile( = /\"/g);
var escTitle = title.replace(regex, "\\'");
var diffEscTitle = escTitle.replace(regex2, '\%22');
Riga 1 160:
 
// TOR potentiel / AOL
var isTOR = regex.compile( = /172\.\d+\.\d+\.\d+/);
if (isTOR.test(user))
preEditor += '<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6e/Dialog-warning.svg/16px-Dialog-warning.svg.png" width="16px" alt="forse TOR" title="forse TOR" />&nbsp;';
Riga 1 186:
// Remplace lien [[xxx]] par <a> ;
var wcomment = comment.htmlize();
regex.compile( = /\[\[(([^\]\|]*)(.*?))\]\]/g);
wcomment = wcomment.replace(regex, "<a href='"+wgServer+wgScriptPath+"/index.php?title=$2&redirect=no' target='_new'>$1</a>");
regex.compile( = /\>[^\]\|<]*\|([^\]\|<]*)</g);
wcomment = wcomment.replace(regex, ">$1<");
 
Riga 1 462:
 
if (state & REVERT) {
regex.compile( = /\[\[Special:Contributi\/([^\]\|]+)/);
match = regex.exec(comment);
 
if (!match) {
regex.compile( = /\[\[Speciale:Contributi\/([^\]\|]+)/);
match = regex.exec(comment);
}