Abuse filter management

Abuse Filter navigation (Home | Recent filter changes | Examine past edits | Abuse log)
Jump to navigation Jump to search

Differences between versions

ItemVersion from 16:23, 3 February 2024 by JustarandomamericanVersion from 20:07, 8 March 2024 by Justarandomamerican
Basic information

Description:

(publicly viewable)
Justa test vandalism filter
Addition of bad words and other common vandalism
Notes:
Test filter imported from the English Wikipedia, see Filter 384 there, log only for now. -Justa
Test filter imported from the English Wikipedia, see Filter 384 there, log only for now. -Justa
Enable warn and remove page namespace condition. -Justa
Filter conditions
Conditions:
edit_delta < 250 &
edit_delta < 250 &
!("autopatrol" in user_groups) &
!("autopatrol" in user_groups) & (
page_namespace == 0 & (
     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\.)[\s-]Dicks?\b|\b(first|last|author|given|surname)(\d*(-?link)?|-?link\d*)?\s*=\s*(Dick|Cock)s?\b|DICK'S|{{\s*[Ss]ortname\s*\|\s*Dicks?\s*\|";
     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\.)[\s-]Dicks?\b|\b(first|last|author|given|surname)(\d*(-?link)?|-?link\d*)?\s*=\s*(Dick|Cock)s?\b|DICK'S|{{\s*[Ss]ortname\s*\|\s*Dicks?\s*\|";


     !(summary irlike "und(id|o)|\brv[vt]?\b|revert") & (
     !(summary irlike "und(id|o)|\brv[vt]?\b|revert") & (
         bad_word := "\b(?:ass|arse|butt)\s?holes?\b(?!\Wsurfer)|\b(?:dumb|(?:f|ph)at+(?:est)?)\s*a(?:ss|\$\$)\b|\barse\b|bitch(?!\"? magazine|itra)|\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)|(?<!top)penis(?!ton|i|cola)|\bcrap(?:py)?\b|\bslut\b|whore|\b(?:bull|dog|horse)?shite?(?:hole|s|ti?er|t?y|t?ing)?\b|\bblah\b|\bpuss(?!ycat|yfoot|y Riot)a?y|\bidiot\b|(?<!\bit )(?<!\bthat )\bwas here\b|\blol\b|(?:[asdfghjkl;]\s*){30}|\!{10,}";
         bad_word := "\b(?:ass|arse|butt)\s?holes?\b(?!\Wsurfer)|\b(?:dumb|(?:f|ph)at+(?:est)?)\s*a(?:ss|\$\$)\b|\barse\b|bitch(?!\"? magazine|itra)|\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)|(?<!top)penis(?!ton|i|cola)|\bcrap(?:py)?\b|\bslut\b|whore|\b(?:bull|dog|horse)?shite?(?:hole|s|ti?er|t?y|t?ing)?\b|\bblah\b|\bpuss(?!ycat|yfoot|y Riot)a?y|\bidiot\b|(?<!\bit )(?<!\bthat )\bwas here\b|\blol\b|(?:[asdfghjkl;]\s*){30}|\!{10,}";


         added_lines irlike bad_word &
         added_lines irlike bad_word &
         !(added_lines rlike dick_name) &
         !(added_lines rlike dick_name) &
         !(removed_lines irlike (bad_word + "|\w\*{1,4}\w")) &
         !(removed_lines irlike (bad_word + "|\w\*{1,4}\w")) &
         !((page_title + "\n" + added_links) irlike bad_word) &
         !((page_title + "\n" + added_links) irlike bad_word) &
         !(page_title irlike "discography|\(song\)") &
         !(page_title irlike "discography|\(song\)") &
         !(str_replace(new_wikitext, "==", "\x01") irlike ("\x01.*(?:songs|singles|track list(?:ing)?|albums|discography).*\x01[^\x01]*(?:" + bad_word + ")"))
         !(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
 
Warn: abusefilter-warning