X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=default.filter;h=a0601d0b7f33e0e818cbdef10febc8392af9bf92;hb=b79a11a6c8e05e1970386131f0ffc1879795b5b1;hp=c2cc2173397496e6f2d0d8f35bf78dfbfccdf735;hpb=24feae0d78aaf4a5afebc47f10c9b9c617a01d5d;p=privoxy.git diff --git a/default.filter b/default.filter index c2cc2173..a0601d0b 100644 --- a/default.filter +++ b/default.filter @@ -2,7 +2,7 @@ # # File : $Source: /cvsroot/ijbswa/current/default.filter,v $ # -# $Id: default.filter,v 1.40 2007/03/20 15:40:00 fabiankeil Exp $ +# $Id: default.filter,v 1.42 2007/05/17 15:55:36 fabiankeil Exp $ # # Purpose : Rules to process the content of web pages # @@ -57,14 +57,20 @@ # # 'U' turns the default to ungreedy matching. Add ? to quantifiers to # switch back to greedy. +# # 'T' (trivial) prevents parsing for backreferences in the substitute. # Use if you want to include text like '$&' in your substitute without # quoting. +# # 'D' (Dynamic) allows the use of variables. Supported variables are: # $host, $origin (the IP address the request came from), $path and $url. +# # Note that '$' is a bad choice as delimiter for dynamic filters as you # might end up with unintended variables if you use a variable name -# directly after the delimiter. +# directly after the delimiter. Variables will be resolved without +# escaping anything, therefore you also have to be careful not to chose +# delimiters that appear in the replacement text. For example '<' should +# be save, while '?' will sooner or later cause conflicts with $url. # ################################################################################# @@ -721,17 +727,29 @@ s@Accept:\s*image/.*@IMAGE-REQUEST@i ################################################################################# # -# text-requests: Tags detected CSS requests as "TEXT-REQUEST". Whether +# css-requests: Tags detected CSS requests as "CSS-REQUEST". Whether # or not the detection actually works depends on the browser. # ################################################################################# -CLIENT-HEADER-TAGGER: text-requests Tags detected requests for text documents as "TEXT-REQUEST". -s@Accept:\s*text/.*@TEXT-REQUEST@i +CLIENT-HEADER-TAGGER: text-requests Tags detected CSS requests as "CSS-REQUEST". +s@Accept:\s*text/css.*@CSS-REQUEST@i ############################################################################## # # Revisions : # $Log: default.filter,v $ +# Revision 1.42 2007/05/17 15:55:36 fabiankeil +# Undo an improperly tested last-minute change +# and turn "text-requests" back into "css-requests". +# +# Revision 1.41 2007/05/17 15:45:41 fabiankeil +# - Mention new filter types and the 'D' option. +# - Header filters are now case-insensitive and accept a +# varying amount of whitespace after the colon. +# - Add another selector for yahoo ads. +# - New server-header filter: less-download-windows +# - New client-header taggers: text-requests and image-requests. +# # Revision 1.40 2007/03/20 15:40:00 fabiankeil # Adjust to new world order with dedicated header-filter actions. #