X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=default.filter;h=485033a2cfd68db756494bb75c04e246dde4892a;hp=16dfa58ad24ad4866d0116a55a55cddaba06e4a5;hb=5a5807409ae15a99c2e7365f292a6de0054257e3;hpb=0eb9346eb1ad546b959637b92ba74b807e5a28fb diff --git a/default.filter b/default.filter index 16dfa58a..485033a2 100644 --- a/default.filter +++ b/default.filter @@ -2,17 +2,13 @@ # # File : $Source: /cvsroot/ijbswa/current/default.filter,v $ # -# $Id: default.filter,v 1.5 2002/03/27 15:30:26 swa Exp $ +# $Id: default.filter,v 1.10 2002/04/18 10:14:19 oes Exp $ # # Purpose : Rules to process the content of web pages # # Copyright : Written by and Copyright # Privoxy team. http://www.privoxy.org/ # -# Based on the Internet Junkbuster originally written -# by and Copyright (C) 1997 Anonymous Coders and -# Junkbusters Corporation. http://www.junkbusters.com -# # We value your feedback. However, to provide you with the best support, # please note: # @@ -74,21 +70,16 @@ FILTER: html-annoyances Get rid of particularly annoying HTML abuse # New browser windows (if allowed -- see no-popups filter below) should be # resizeable and have a location and status bar # -s/(]+)resizable=['"]?(no|0|false)['"]?(.*>)/$1resizable=1$3/igU -s/(]+)location=['"]?(no|0)['"]?(.*>)/$1location=1$3/igU -s/(]+)status=['"]?(no|0)['"]?(.*>)/$1status=1$3/igU -s/(]+)scrolling=['"]?(no|0|auto)['"]?(.*>)/$1scrolling=no$3/igU -s/(]+)menubar=['"]?(no|0)['"]?(.*>)/$1menubar=1$3/igU +s/(]+)resizable=['"]?(no|0|false)['"]?(.*>)/$1resizable="1"$3/igU +s/(]+)location=['"]?(no|0)['"]?(.*>)/$1location="1"$3/igU +s/(]+)status=['"]?(no|0)['"]?(.*>)/$1status="1"$3/igU +s/(]+)scrolling=['"]?(no|0|auto)['"]?(.*>)/$1scrolling="no"$3/igU +s/(]+)menubar=['"]?(no|0)['"]?(.*>)/$1menubar="1"$3/igU # The tag was a crime! # s*|**ig -# Is this evil? -# -#s/margin(height|width)=[0-9]*//gi -#s/noresize/yesresize/igU - ################################################################################# # @@ -103,7 +94,7 @@ s|()|$1"Not Your Business!"$2|Usg # The status bar is for displaying link targets, not pointless blahblah # -s/status='.*?';*//ig +s/window.status\s*=\s*['"].*?['"]/dUmMy=1/ig # Kill OnUnload popups. Yummy. Test: http://www.zdnet.com/zdsubs/yahoo/tree/yfs.html # @@ -128,26 +119,30 @@ s|].*>|/sig +s/]*?(width|height)\s*=\s*['"]?1\D[^>]*?(width|height)\s*=\s*['"]?1(\D[^>]*?)?>//siUg ################################################################################# # -# no-refresh: Kill automatic refresh tags (for dial-on-demand setups) +# refresh-tags: Kill automatic refresh tags (for dial-on-demand setups) # ################################################################################# -FILTER: no-refresh Kill automatic refresh tags (for dial-on-demand setups) +FILTER: refresh-tags Kill automatic refresh tags (for dial-on-demand setups) s/]*)['"]?>//iU s/].*>//iU @@ -179,7 +174,7 @@ FILTER: fun Text replacements for subversive browsing fun! s/microsoft(?!.com)/MicroSuck/ig -# Buzzword Bingo (example for extended syntax) +# Buzzword Bingo (example for extended regex syntax) # s* industry[ -]leading \ | cutting[ -]edge \ @@ -189,7 +184,7 @@ s* industry[ -]leading \ | unmatched \ | unparalleled \ | unrivalled \ -*BINGO! \ +*BINGO! \ *igx @@ -200,8 +195,7 @@ s* industry[ -]leading \ ################################################################################# FILTER: nimda Remove Nimda (virus) code -s%%

Internet JUNKBUSTER WARNING: This Server is infected with Nimda!%g - +s%%
WARNING: This Server is infected with Nimda!%g ################################################################################# # @@ -218,24 +212,34 @@ s%