„Szerkesztő:AntiVandal/recent2.js” változatai közötti eltérés

Tartalom törölve Tartalom hozzáadva
AntiVandal (vitalap | szerkesztései)
aNincs szerkesztési összefoglaló
AntiVandal (vitalap | szerkesztései)
a frissítés
60. sor:
ret.push(s.replace(RegExp('([-|.()\\+:!,?*^${}\\[\\]])', 'g'), '\\$1'));
}
// 123 3 2| 4 415 5
// (( repeatedchar ) | ( ... | ... | ... ))( bdy )
// ((( repeatedchar ) )| ( ... | ... | ... ))( bdy )
window.badWords=RegExp("<td>[+]</td>\\s*<td .*?>\\s*.*?((([^-{}.\\s'=wI:*#0-9A-F])\\23{2,})|[^/]\\b(" + ret.join('|') + "))(\\b[^/]|[|]).*\\s*</td>", 'im');
}
}
 
195 ⟶ 197 sor:
articleTitle=getFirstTagContent(items[i], 'title');
var id=processRecentChanges.id;
var badWord=badMatch[2] || badMatch[4];
// highlighting
badMatch[0]=badMatch[0].split(badMatch[1]badWord).join('<span style="background-color: #FF6">'+badMatch[1]badWord+'</span>');
output.push(recent2.doLine({timestamp: timestamp, article:article, articleTitle:articleTitle,
editor:editor, id:id, badWord:badMatch[1]badWord, badDiffFragment:badMatch[0], diff:diffText,
summary:editSummary}));
processRecentChanges.id++;