Edit filter configuration

Differences between versions

ItemVersion from 12:53, 31 October 2012 by Peter HarrisonVersion from 22:24, 6 October 2022 by Peter Harrison
Basic information

Description:

(publicly viewable)
Addition of bad words
Addition of bad words or other vandalism
Filter conditions
Conditions:
(documentation)
article_namespace == 0
edit_delta < 250 &
& !"autoconfirmed" in user_groups
!("confirmed" in user_groups) &
& edit_delta < 20
page_namespace == 0 & (
& added_lines rlike "bitch|\bcocks?\b|\bdicks?\b|\bcunts?\b|\bdildo|douche|fuck|nigg(er|ah*)|pedophile|fag(g|\b)|penis|\bcrap|\bslut|whore|\bsuck|\bshit|\bhello\b|\bblah|\bpussy|^hi\b|\bidiot\b|\bwas here|\blol\b|\bawesome"
    dick_name := "\bDick('s\s\p{L}\p{Ll}|(,?\s(and|&))?\s\p{Lu}[\p{Ll}.])|\b(\p{Lu}(\p{Ll}+|\.)?(,?\s(and|&))?|[DM]r\.)\sDicks?\b|\b(first|last|author|given|surname)(\d*(-?link)?|-?link\d*)?\s*=\s*Dicks?\b|{{\s*[Ss]ortname\s*\|\s*Dicks?\s*\|";
& !(lcase(removed_lines) rlike "bitch|cock|dick|cunt|dildo|douche|fuck|\w\*\*?\w|nigg|pa?edophile|fag|penis|crap|slut|shit|whore|suck|hello|blah|pussy|^hi\b|idiot|was here|\blol\b|awesome")
 
& !(lcase(summary) rlike "und(id|o)|\brv[vt]?\b|revert")
    !(summary irlike "und(id|o)|\brv[vt]?\b|revert") & (
& length(added_lines) < 1000
        bad_word := "\b(?:ass|butt)\s?holes?\b(?!\Wsurfer)|\b(?:dumb|(?:f|ph)at+(?:est)?)\s*a(?:ss|\$\$)\b|bitch(?!\"? magazine)|\bcock(?:s?|sucker)\b|\bdick(?:sucker|head)?s?\b|cuck(?:|s|er|ing)\b|\bcunts?\b|\bdildo|douche|f(?:u|v)ck|nigg(?:er|ah*)|p(?:a|e|ae)do(?:f|ph)il|fag(?:\b|g[aio]t)|penis(?!ton|i)|\bcrap(?:py)?\b|\bslut\b|whore|\b(?:bull|dog|horse)?shit(?:hole|s|ti?er|t?y|t?ing)?\b|\bblah\b|\bpuss(?!ycat|y Riot)a?y|\bidiot\b|(?<!\bit )(?<!\bthat )\bwas here\b|\blol\b|(?:[asdfghjkl;]\s*){30}|\!{10,}";
 
        added_lines irlike bad_word &
        !(added_lines rlike dick_name) &
        !(removed_lines irlike (bad_word + "|\w\*{1,4}\w")) &
        !((page_title + "\n" + added_links) irlike bad_word) &
        !(page_title irlike "discography") &
        !(str_replace(new_wikitext, "==", "\x01") irlike ("\x01.*(?:songs|singles|track list(?:ing)?|albums|discography).*\x01[^\x01]*(?:" + bad_word + ")"))
    )
)
Actions to take when matched
Actions to take when matched
Disallow
Disallow: abusefilter-disallowed