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
o
n
●
G
e
t
s
h
o
r
t
e
n
e
d
U
R
L
●
D
o
w
n
l
o
a
d
Q
R
c
o
d
e
A
p
p
e
a
r
a
n
c
e
m
o
v
e
t
o
s
i
d
e
b
a
r
h
i
d
e
E
d
i
t
i
n
g
f
i
l
t
e
r
1
7
2
(
s
e
e
a
l
s
o
a
g
r
a
p
h
o
f
r
e
c
e
n
t
a
c
t
i
o
n
s
)
Filter parameters
Filter ID:
172
Description:
(publicly viewable)
Filter hits:
1,250,877 hits
Statistics:
Of the last 140,106 actions, this filter has matched 113 (0.08%). On average, its run time is 0.13 ms, and it consumes 1.5 conditions of the condition limit.
Conditions:
(
documentation
)
!"confirmed" in user_groups & length(added_lines) < 1 & page_namespace == 0 & ( ( rmwhitespace(removed_lines) rlike "==\w+==" & ( rmwhitespace(old_wikitext) contains rmwhitespace(removed_lines + "==") & ! rmwhitespace(new_wikitext) contains rmwhitespace(removed_lines + "==") ) ) | ( rmwhitespace(old_wikitext) contains rmwhitespace("==" + removed_lines + "==") & ! rmwhitespace(new_wikitext) contains rmwhitespace(removed_lines + "==") ) )
!"confirmed" in user_groups & length(added_lines) < 1 & page_namespace == 0 & ( ( rmwhitespace(removed_lines) rlike "==\w+==" & ( rmwhitespace(old_wikitext) contains rmwhitespace(removed_lines + "==") & ! rmwhitespace(new_wikitext) contains rmwhitespace(removed_lines + "==") ) ) | ( rmwhitespace(old_wikitext) contains rmwhitespace("==" + removed_lines + "==") & ! rmwhitespace(new_wikitext) contains rmwhitespace(removed_lines + "==") ) )
Notes:
This seems to work to see section blanking, testing as log only to see if it gives false positives and for speed. OK, added basic check if the removed_text does contain "==", this line could maybe be made better by using a regex on it to check if it is "== sectiontitle ==" ..?? Reenabled, it still may give some false positives. --Beetstra Speedup, specificity --Beetstra bit upgrade? --Beetstra Small case tag, for consistency with other tags. -x null edit, small case change didn't get through - Cen trying to deactivate and reactivate - Cen tagged edits are not reassigned after rename, see bugzilla 18908 - Cen (added_lines == "") does not work, (length(added_lines) <
1
) does .. curiously. Updating filter --Beetstra False positives on removing empty sections can we test for that? Crudely even old_wikitext contains [^=](==+) *\n\1[^=] (i.e. it had at least one empty section) might do the job. Rich Farmbrough. Encountered another form of blanking, attempted to add to filter --Beetstra Format. -DF
Flags:
Hide details of this filter from public view
Enable this filter
I understand that details of this filter will be hidden from users who cannot see [https://www.mediawiki.org/wiki/Extension:AbuseFilter/Rules_format#Protected_variables protected variables]
Mark as deleted
Filter last modified:
10:24, 12 November 2019
by
Zzuuzz
(
talk
|
contribs
)
History:
View this filter's history
Tools:
Export this filter to another wiki
{"data":{"rules":"!\"confirmed\" in user_groups \u0026\r\nlength(added_lines) \u003C 1 \u0026\r\npage_namespace == 0 \u0026\r\n(\r\n (\r\n rmwhitespace(removed_lines) rlike \"==\\w+==\" \u0026\r\n (\r\n rmwhitespace(old_wikitext) contains rmwhitespace(removed_lines + \"==\") \u0026\r\n ! rmwhitespace(new_wikitext) contains rmwhitespace(removed_lines + \"==\") \r\n )\r\n ) | \r\n (\r\n rmwhitespace(old_wikitext) contains rmwhitespace(\"==\" + removed_lines + \"==\") \u0026\r\n ! rmwhitespace(new_wikitext) contains rmwhitespace(removed_lines + \"==\")\r\n )\r\n)","name":"Section blanking","comments":"This seems to work to see section blanking, testing as log only to see if it gives false positives and for speed.\r\n\r\nOK, added basic check if the removed_text does contain \"==\", this line could maybe be made better by using a regex on it to check if it is \"== sectiontitle ==\" ..??\r\n\r\nReenabled, it still may give some false positives. --Beetstra\r\n\r\nSpeedup, specificity --Beetstra\r\nbit upgrade? --Beetstra\r\n\r\nSmall case tag, for consistency with other tags. -x\r\n\r\nnull edit, small case change didn't get through - Cen\r\n\r\ntrying to deactivate and reactivate - Cen\r\n\r\ntagged edits are not reassigned after rename, see bugzilla 18908 - Cen\r\n\r\n(added_lines == \"\") does not work, (length(added_lines) \u003C 1) does .. curiously.\r\n\r\nUpdating filter --Beetstra\r\nFalse positives on removing empty sections can we test for that? Crudely even\r\nold_wikitext contains [^=](==+) *\\n\\1[^=]\r\n(i.e. it had at least one empty section) might do the job.\r\nRich Farmbrough.\r\n\r\nEncountered another form of blanking, attempted to add to filter --Beetstra\r\n\r\nFormat. -DF","group":"default","actions":{"tag":["Section blanking"]},"enabled":true,"deleted":false,"privacylevel":0,"global":false},"actions":{"tag":["Section blanking"]}}
Actions to take when matched
Trigger actions only if the user trips a rate limit
Number of actions to allow:
Period of time (in seconds):
Group throttle by:
user
See
the documentation on mediawiki.org
.
Trigger these actions after giving the user a warning
System message to use for warning:
abusefilter-warning
Other message
Page name of other message:
(without "MediaWiki:" prefix)
Show/Hide preview of selected message
Prevent the user from performing the action in question
System message to use for disallowing:
abusefilter-disallowed
Other message
Page name of other message:
(without "MediaWiki:" prefix)
Show/Hide preview of selected message
Revoke the user's autoconfirmed status
Tag the edit in contributions lists and page histories
Tags to apply:
(see
Wikipedia:Tags
for use and formatting)
(please don't rename a tag here, see link above)
(one per line, no commas, publicly visible)
Section blanking
R
e
t
r
i
e
v
e
d
f
r
o
m
"
https://en.wikipedia.org/wiki/Special:AbuseFilter/172
"
●
P
r
i
v
a
c
y
p
o
l
i
c
y
●
A
b
o
u
t
W
i
k
i
p
e
d
i
a
●
D
i
s
c
l
a
i
m
e
r
s
●
C
o
n
t
a
c
t
W
i
k
i
p
e
d
i
a
●
C
o
d
e
o
f
C
o
n
d
u
c
t
●
D
e
v
e
l
o
p
e
r
s
●
S
t
a
t
i
s
t
i
c
s
●
C
o
o
k
i
e
s
t
a
t
e
m
e
n
t
●
M
o
b
i
l
e
v
i
e
w