Edit filter configuration

Differences between versions

ItemVersion from 05:51, 24 November 2012 by FeezoVersion from 10:44, 17 February 2015 by Dragons flight
Basic information
Notes:
imported for the most part from filter 39, but change area from schools/colleges/.. to BLPs, identified for now by directly containing Category:Living people, but it's not complete at all.
imported for the most part from filter 39, but change area from schools/colleges/.. to BLPs, identified for now by directly containing Category:Living people, but it's not complete at all.
This kind of filters SHOULD NOT BE SET TO WARN OR DISALLOW, they will have false positives. KEEP IT TO LOG OR TAG ONLY - Cen
This kind of filters SHOULD NOT BE SET TO WARN OR DISALLOW, they will have false positives. KEEP IT TO LOG OR TAG ONLY - Cen
I'll reactivate it when I can watch - Cen
I'll reactivate it when I can watch - Cen


Works fine, add this to the tag "possible libel or vandalism" - Cen
Works fine, add this to the tag "possible libel or vandalism" - Cen


Removing a few more common words - Cen
Removing a few more common words - Cen


update to reduce some false positives by checking removed_lines for less severe strings - Cen
update to reduce some false positives by checking removed_lines for less severe strings - Cen


test for perf - Cen
test for perf - Cen


keep ref count check out, add a \b - Cen
keep ref count check out, add a \b - Cen


reenabled by request - prodego
reenabled by request - prodego
Living people should now be more complete, only Infobox comic creator now transcludes it. (Lifetime has been subst'ed and it has been removed form BLP unsourced)
Living people should now be more complete, only Infobox comic creator now transcludes it. (Lifetime has been subst'ed and it has been removed form BLP unsourced)


Added check of removed lines to prevent false positives. Simplified code by introducing variables. - Ruslik
Added check of removed lines to prevent false positives. Simplified code by introducing variables. - Ruslik
'Slutskaya' is a name ... Ruslik's add-on usually works, but not always. Adding \b  -- Soap
'Slutskaya' is a name ... Ruslik's add-on usually works, but not always. Adding \b  -- Soap


*Added terrorist, please don't hesitate to revert/modify if I cocked up. --HJ
*Added terrorist, please don't hesitate to revert/modify if I cocked up. --HJ


Catching masked "fuck". --Reaper
Catching masked "fuck". --Reaper


Replace the expensive "lcase(old_wikitext)" with "old_wikitext rlike". -Sole Soul
Replace the expensive "lcase(old_wikitext)" with "old_wikitext rlike". -Sole Soul
Clean layout and reduce condition count.  -DF
Filter conditions
Conditions:
(documentation)
article_namespace == 0
article_namespace == 0 &
& !("autoconfirmed" in user_groups)
(
& old_wikitext rlike "(c|C)ategory\:(l|L)iving people"
  ! "autoconfirmed" in user_groups &
& (
  (
line1:= "(pa?edo(ph|f)il|little\sboys|molest|predat(e|o)r|\brap(e|ing|ist)|penis|\bcunt|\btwat|bitch\b|slut\b|prostitut|whore|\bf[-._ ]?u[-._ ]?c[-._ ]?k|pimp\b|faggot|brothel|\bgays|(is|are)\sgay|\(gay\)|\bwank(a|er|ed|ing|s)?\b|bellend|dickhead|terrorist|\bcocks?\b)";  
    old_wikitext rlike "(c|C)ategory\:(l|L)iving people" &
line2:="(drugs|abuse|ha(ve|ving|s|d)\ssex|sex\swith|\bporn)";
    (
line3:="(fired\b|sacked|expelled|corrupt|fraud)";
      line1:= "(pa?edo(ph|f)il|little\sboys|molest|predat(e|o)r|\brap(e|ing|ist)|penis|\bcunt|\btwat|bitch\b|slut\b|prostitut|whore|\bf[-._ ]?u[-._ ]?c[-._ ]?k|pimp\b|faggot|brothel|\bgays|(is|are)\sgay|\(gay\)|\bwank(a|er|ed|ing|s)?\b|bellend|dickhead|terrorist|\bcocks?\b)";  
lad:=lcase(added_lines); lrm:=lcase(removed_lines);
     
 
      line2:="(drugs|abuse|ha(ve|ving|s|d)\ssex|sex\swith|\bporn)";
(lad rlike line1) & !(lrm rlike line1)
      line3:="(fired\b|sacked|expelled|corrupt|fraud)";
| ((lad rlike line2) & !(lrm rlike line2))
| ((lad rlike line3) & !(lrm rlike line3))


      (
        added_lines irlike line1 & ! removed_lines irlike line1
      ) |
      (
        added_lines irlike line2 & ! removed_lines irlike line2
      ) |
      (
        added_lines irlike line3 & ! removed_lines irlike line3
      )
    )
  )
)
)