From: Fabian Keil <fk@fabiankeil.de> Date: Mon, 2 Oct 2006 16:21:14 +0000 (+0000) Subject: Adjusted yahoo filter to hide .yschspns as well. X-Git-Tag: v_3_0_6~70 X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@edit-actions-add-url-form?a=commitdiff_plain;h=948d34e74be7fa84c21198cf6f04140913d2567b;p=privoxy.git Adjusted yahoo filter to hide .yschspns as well. Added header filters: html-to-xml and xml-to-html. --- diff --git a/default.filter b/default.filter index e9b9485e..4197b788 100644 --- a/default.filter +++ b/default.filter @@ -2,7 +2,7 @@ # # File : $Source: /cvsroot/ijbswa/current/default.filter,v $ # -# $Id: default.filter,v 1.19 2006/07/18 14:48:45 david__schmidt Exp $ +# $Id: default.filter,v 1.20 2006/10/01 21:00:22 fabiankeil Exp $ # # Purpose : Rules to process the content of web pages # @@ -523,7 +523,7 @@ FILTER: yahoo CSS-based block for Yahoo text ads. Also removes a width limitatio s@</head>@<style type="text/css">\n\ /* Style sheet inserted by Privoxy's yahoo filter. */\n\ \#symadbn, \#ymadbn, \#yschsec, \#yschanswr, .yschftad,\ - .yschspn{display: none !important;}\n\ + .yschspn, .yschspns {display: none !important;}\n\ \#yschpri {width: 100% }\n</style>\n$0@ ################################################################################# @@ -569,11 +569,29 @@ s@(<div style=\"[^\"]*width:)30em@$1 100%@ s@background:url\(\"http://www.blogblog.com/rounders[^\"]*\"\).*;@/*$0*/@Ug s@(background:\#[a-f\d]{3})( url\(\"http://www.blogblog.com/rounders[^\"]*\"\).*;)@$1 ;/*$2*/@Ug +################################################################################# +# +# html-to-xml: Header filter to change the Content-Type from html to xml. +# +################################################################################# +FILTER: html-to-xml Header filter to change the Content-Type from html to xml. +s@^(Content-Type:) text/html(;.*)?$@$1 application/xhtml+xml$2@ + +################################################################################# +# +# xml-to-html: Header filter to change the Content-Type from xml to html. +# +################################################################################# +FILTER: xml-to-html Header filter to change the Content-Type from xml to html. +s@^(Content-Type:) (?:application|text)/(?:xhtml\+)?xml(;.*)?$@$1 text/html$2@ ############################################################################## # # Revisions : # $Log: default.filter,v $ +# Revision 1.20 2006/10/01 21:00:22 fabiankeil +# New site-specific filters: google, yahoo, msn and blogspot. +# # Revision 1.19 2006/07/18 14:48:45 david__schmidt # Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch) # with what was really the latest development (the v_3_0_branch branch)