Přeskočit na obsah

Správa filtrů zneužití

Rozdíly mezi verzemi

PoložkaVerze z 3. 11. 2016, 16:11 od uživatele Martin UrbanecVerze z 6. 11. 2016, 20:22 od uživatele Martin Urbanec
Základní informace

Popis:

(veřejně viditelný)
Spam blacklist mimo reference a externí odkazy
URL v textu
Poznámky:
N antispamový filtr reagující mimo URL --MU
N antispamový filtr reagující mimo ref --MU


Úprava, aby nechytal v EO. --Matěj Suchánek
Úprava, aby nechytal v EO. --Matěj Suchánek


Relevantní úprava title
Relevantní úprava title --MU
 
Změna účelu filtru + úprava title --MU
Podmínky filtru
Podmínky:
words := "https?:\/\/(www\.)?autorskecteni\.cz";
words := "https?:\/\/";
words_in_tags := '<(ref)\b[^<]+' + words + '[^<]*</\1>';
words_in_tags := '<(ref)\b[^<]+' + words + '[^<]*</\1>';
words_in_template := '({{[^{]*)+' + words + '[^}]*</}}>';
old_count_simple := rcount(words, lcase(removed_lines));
old_count_simple := rcount(words, lcase(removed_lines));
new_count_simple := rcount(words, lcase(added_lines));
new_count_simple := rcount(words, lcase(added_lines));
old_count_tags := rcount(words_in_tags, lcase(removed_lines));
old_count_tags := rcount(words_in_tags, lcase(removed_lines));
new_count_tags := rcount(words_in_tags, lcase(added_lines));
new_count_tags := rcount(words_in_tags, lcase(added_lines));


new_count_simple - new_count_tags > old_count_simple - old_count_tags
new_count_simple - new_count_tags > old_count_simple - old_count_tags
& (
& (
  new_link_header := strpos(lcase(new_wikitext), "externí odkazy");
  new_link_header := strpos(lcase(new_wikitext), "externí odkazy");
  new_link_header === false |
  new_link_header === false |
  (
  (
   new_after_text := substr(lcase(new_wikitext), new_link_header);
   new_after_text := substr(lcase(new_wikitext), new_link_header);
   new_after_count := rcount(words, new_after_text);
   new_after_count := rcount(words, new_after_text);
   old_link_header := strpos(lcase(old_wikitext), "externí odkazy");
   old_link_header := strpos(lcase(old_wikitext), "externí odkazy");
   old_after_count := old_link_header !== false
   old_after_count := old_link_header !== false
   ? rcount(words, substr(lcase(old_wikitext), old_link_header))
   ? rcount(words, substr(lcase(old_wikitext), old_link_header))
   : 0;
   : 0;
   (new_count_simple - new_count_tags) - (old_count_simple - old_count_tags) > new_after_count - old_after_count
   (new_count_simple - new_count_tags) - (old_count_simple - old_count_tags) > new_after_count - old_after_count
  )
  )
)
)