X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=re_filterfile;h=6e40a899a36927071972a1633f5444f2d12feccc;hp=16c073bfd4c9e1bf55c509a9b0eda1e00c733c14;hb=e22381280b321c906b89fe01eaea62cbe0f68470;hpb=c75584ebcc79f939fb4ec9c8f842cef6692640c7 diff --git a/re_filterfile b/re_filterfile index 16c073bf..6e40a899 100644 --- a/re_filterfile +++ b/re_filterfile @@ -5,6 +5,10 @@ # Note that you are free to choose the delimter as you # see fit. # +# Note: in addidion to the Perl-options egimosx, U is supported +# and turns the default to ungreedy matching. Add ? to quantifiers +# to switch back to greedy. +# # Kill OnUnload popups. Yummy. # check it out on http://www.zdnet.com/zdsubs/yahoo/tree/yfs.html @@ -42,6 +46,28 @@ s/status='.*?';*//ig # JavaScript: s/window\.open\(/who_wants_this_to.open(/ig # HTML : s/target="?_blank"?/target_who/g +# Kill banners by size: +# (Sizes from http://www.iab.net/iab_banner_standards/bannersizes.html) +# +s|]*?(width=['"]?468\D)[^>]*(height=['"]?60\D).*?>||ig +s|]*?(width=['"]?234\D)[^>]*(height=['"]?60\D).*?>||ig +s|]*?(width=['"]?88\D)[^>]*(height=['"]?31\D).*?>||ig +s|]*?(width=['"]?120\D)[^>]*(height=['"]?90\D).*?>||ig +s|]*?(width=['"]?120\D)[^>]*(height=['"]?60\D).*?>||ig +s|]*?(width=['"]?160\D)[^>]*(height=['"]?600\D).*?>||ig +s|]*?(width=['"]?120\D)[^>]*(height=['"]?600\D).*?>||ig +s|]*?(width=['"]?125\D)[^>]*(height=['"]?125\D).*?>||ig +s|]*?(width=['"]?120\D)[^>]*(height=['"]?240\D).*?>||ig +s|]*?(width=['"]?180\D)[^>]*(height=['"]?150\D).*?>||ig +s|]*?(width=['"]?300\D)[^>]*(height=['"]?250\D).*?>||ig +s|]*?(width=['"]?250\D)[^>]*(height=['"]?250\D).*?>||ig +s|]*?(width=['"]?240\D)[^>]*(height=['"]?400\D).*?>||ig +s|]*?(width=['"]?336\D)[^>]*(height=['"]?280\D).*?>||ig + +# Squish WebBugs: +# +s/]*?(width|height) *= *['"]?1\D[^>]*?(width|height) *= *['"]?1\D.*?>//ig + # Fun stuff: # s/microsoft(?!.com)/MicroSuck<\/b>/ig