Edit filter configuration

Differences between versions

ItemVersion from 00:52, 28 February 2019 by Suffusion of YellowVersion from 13:16, 7 June 2019 by Galobtter
Basic information
Notes:
Warns new users about adding external images (which don't work), HTML images, or HTML links.
Warns new users about adding external images (which don't work), HTML images, or HTML links.


Log mode only. - KoH
Log mode only. - KoH


removed_lines, of course. - KoH
removed_lines, of course. - KoH


jpeg. - KoH
jpeg. - KoH


False positive: Adding external link to image. - KoH
False positive: Adding external link to image. - KoH


Faster regex. - KoH
Faster regex. - KoH


No false positives, setting to warn. - KoH
No false positives, setting to warn. - KoH


Added tag so people can go back and clean up the mess. - KoH
Added tag so people can go back and clean up the mess. - KoH


False positive: <ref> tags. Making > an exception to http; <img> and <a href> would still get caught. - KoH
False positive: <ref> tags. Making > an exception to http; <img> and <a href> would still get caught. - KoH


Exempt {{external media}} per EF/R. - KoH
Exempt {{external media}} per EF/R. - KoH


Checking for <ref> in added_lines. - KoH
Checking for <ref> in added_lines. - KoH


Use rcount. - KoH
Use rcount. - KoH


Check for {{cite. - KoH
Check for {{cite. - KoH


Correct name: images --> images/links. - KoH
Correct name: images --> images/links. - KoH


Kill warning, it can be fixed later -P
Kill warning, it can be fixed later -P


adding s? to http    05/27/13 --Soap
adding s? to http    05/27/13 --Soap


Catch File:http and Image:http - Jackmcbarn
Catch File:http and Image:http - Jackmcbarn


Layout cleanup and condition count reduce.  -DF
Layout cleanup and condition count reduce.  -DF
Format, and add "data:image" per [[Special:PermaLink/900760394#Base64_image_data]]. -G 2019-06-07
Filter conditions
Conditions:
(documentation)
!"confirmed" in user_groups &
page_namespace == 0 &
page_namespace == 0 &
(  
(
   ! "confirmed" in user_groups &
   urls := "data:image|<img|<a href|([^\[]|\[\[(File:|Image:)?)https?://[\S]*?\.(jpe?g|png|gif|bmp)";
  templates := "(?i)external ?(media|image|audio|video)|<ref>|{{cite";
  added_lines irlike urls &
  !removed_lines irlike urls &
   (
   (
     added_lines irlike "(<img|<a href|([^\[]|\[\[(File:|Image:)?)https?://[\S]*?\.(jpe?g|png|gif|bmp))" &
     rcount( templates, lcase(added_lines) ) <=  
    (
    rcount( templates, lcase(removed_lines) )
      ! removed_lines irlike "(<img|<a href|([^\[]|\[\[(File:|Image:)?)https?://[\S]*?\.(jpe?g|png|gif|bmp))" &
      (
        rcount( "external ?(media|image|audio|video)|<ref>|{{cite", lcase(added_lines) ) <=  
        rcount( "external ?(media|image|audio|video)|<ref>|{{cite", lcase(removed_lines) )
      )
    )
   )
   )
)
)