Wikipedysta:Christo76/js/watchCat.js: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
Nie podano opisu zmian
x
Linia 78:
$('#mw-subcategories a').each(function(i){
if ( (wList.match('Kategoria:' + new RegExp('^'+this.innerHTML.replace(/([\(\)\[\]\{\}\|\?\.\*\^\$\+])/g,'\\$1')+'$','m'))!=null) == (watchCat_invert == false)) {
//there's a match and we don't invert selection OR there's no match and we invert selection
$(this).toggleClass('watchCat-main');