Edit filter configuration

Differences between versions

ItemVersion from 20:58, 12 February 2022 by Suffusion of YellowVersion from 07:14, 15 October 2023 by 0xDeadbeef
Basic information
Notes:
Moving here from 861. -Crow 12/23/17
Moving here from 861. -Crow 12/23/17


Changed the warning message from abusefilter-warning to abusefilter-warning-selfpublished -JJE 2 January 2018
Changed the warning message from abusefilter-warning to abusefilter-warning-selfpublished -JJE 2 January 2018
Exclude Bots via usergroup check - C 7Jan18
Exclude Bots via usergroup check - C 7Jan18


!("bot" in user_groups) is most likely to evaluate to true, so putting it as the last condition in hopes to reduce overall condition count ~MA
!("bot" in user_groups) is most likely to evaluate to true, so putting it as the last condition in hopes to reduce overall condition count ~MA


Converted to parameterised and added Mellen + Grosvenor House - JzG 2019-08-24
Converted to parameterised and added Mellen + Grosvenor House - JzG 2019-08-24


Split publisher= and domain masks
Split publisher= and domain masks


Fix order of operations bug and typo in first regex --Suffusion of Yellow 19:57 26 Feb 2020
Fix order of operations bug and typo in first regex --Suffusion of Yellow 19:57 26 Feb 2020


Avoid matches on lulu.jpg, trafford.gov.uk, etc. --Suffusion of Yellow 20:05 26 Feb 2020
Avoid matches on lulu.jpg, trafford.gov.uk, etc. --Suffusion of Yellow 20:05 26 Feb 2020


Add CreateSpace to first regex (was dropped accidentally). --Suffusion of Yellow 19:00 27 Feb 2020
Add CreateSpace to first regex (was dropped accidentally). --Suffusion of Yellow 19:00 27 Feb 2020


Also check User: and Template: namespaces; exclude more summaries (logged at 1081) --Suffusion of Yellow 20:36 30 Aug 2020
Also check User: and Template: namespaces; exclude more summaries (logged at 1081) --Suffusion of Yellow 20:36 30 Aug 2020


Exclude deletion/copyvio templates --Suffusion of Yellow 19:35 3 Sep 2020
Exclude deletion/copyvio templates --Suffusion of Yellow 19:35 3 Sep 2020


Check content model so as not to trip on user scripts. --Suffusion of Yellow 21:48 27 Jan 2021
Check content model so as not to trip on user scripts. --Suffusion of Yellow 21:48 27 Jan 2021


Fix Twinkle summary check. --Suffusion of Yellow 20:57 12 Feb 2022
Fix Twinkle summary check. --Suffusion of Yellow 20:57 12 Feb 2022
Exclude the "citation expander" gadget. -- 0xDeadbeef 2023-10-15
Filter conditions
Conditions:
(documentation)
equals_to_any(page_namespace, 0, 2, 10, 118) &  
equals_to_any(page_namespace, 0, 2, 10, 118) &  
(
(
     selfpub := "(publisher|work)\s?[=,:]\s?(Author\s?House|CreateSpace|Trafford\s?Publishing|iUniverse\s?|Lulu|XLibris|Edwin\s?Mellen\s?Press|Grosvenor\s?House\s?Publishing)\b";  
     selfpub := "(publisher|work)\s?[=,:]\s?(Author\s?House|CreateSpace|Trafford\s?Publishing|iUniverse\s?|Lulu|XLibris|Edwin\s?Mellen\s?Press|Grosvenor\s?House\s?Publishing)\b";  
     selfpuburl := "\b(authorhouse\.com|createspace\.\w{2,3}|grosvenorhousepublishing\.com|iuniverse\.com|lulu\.com|mellenpress\.com|trafford\.com|xlibris\.com)\b";
     selfpuburl := "\b(authorhouse\.com|createspace\.\w{2,3}|grosvenorhousepublishing\.com|iuniverse\.com|lulu\.com|mellenpress\.com|trafford\.com|xlibris\.com)\b";


     added_lines irlike (selfpub+"|"+selfpuburl) &
     added_lines irlike (selfpub+"|"+selfpuburl) &
     !(removed_lines irlike (selfpub+"|"+selfpuburl)) &
     !(removed_lines irlike (selfpub+"|"+selfpuburl)) &
     !("bot" in user_groups) &
     !("bot" in user_groups) &
     !(summary irlike  "^(?:revert|restore|rv|undid)|AFCH|speedy deletion|reFill") &
     !(summary irlike  "^(?:revert|restore|rv|undid)|AFCH|speedy deletion|reFill|UCB_Gadget") &
     !(added_lines irlike "\{\{(db[\-\|]|delete\||sd\||speedy deletion|(subst:)?copyvio|copypaste)") &
     !(added_lines irlike "\{\{(db[\-\|]|delete\||sd\||speedy deletion|(subst:)?copyvio|copypaste)") &
     new_content_model == "wikitext"
     new_content_model == "wikitext"
)
)