Disable HTML filters if the response was tagged ^application/javascript$
authorFabian Keil <fk@fabiankeil.de>
Mon, 5 May 2014 09:55:25 +0000 (09:55 +0000)
committerFabian Keil <fk@fabiankeil.de>
Mon, 5 May 2014 09:55:25 +0000 (09:55 +0000)
Filtering JavaScript code with filters intended to deal with HTML
is usually a waste of time and, more importantly, may break stuff.

default.action.master

index 3935442..58a847e 100644 (file)
@@ -11,7 +11,7 @@
 #
 #  File        :  $Source: /cvsroot/ijbswa/current/default.action.master,v $
 #
-#  $Id: default.action.master,v 1.301 2014/03/08 20:08:09 fabiankeil Exp $
+#  $Id: default.action.master,v 1.302 2014/05/05 09:48:15 fabiankeil Exp $
 #
 #  Requires    :  This version requires Privoxy v3.0.11 or later due to
 #                 syntax changes.
@@ -2499,4 +2499,31 @@ TAG:^IMAGE-REQUEST$
 }
 TAG:^CSS-REQUEST$
 
+#############################################################################
+# Depends on +client-header-tagger{content-type}
+#############################################################################
+{-filter{html-annoyances} \
+ -filter{content-cookies} \
+ -filter{refresh-tags} \
+ -filter{img-reorder} \
+ -filter{banners-by-size} \
+ -filter{banners-by-link} \
+ -filter{webbugs} \
+ -filter{tiny-textforms} \
+ -filter{frameset-borders} \
+ -filter{iframes} \
+ -filter{demoronizer} \
+ -filter{shockwave-flash} \
+ -filter{quicktime-kioskmode} \
+ -filter{fun} \
+ -filter{crude-parental} \
+ -filter{site-specifics} \
+ -filter{no-ping} \
+ -filter{google} \
+ -filter{yahoo} \
+ -filter{msn} \
+ -filter{blogspot} \
+}
+TAG:^application/javascript$
+
 #MASTER# set vi:nowrap