Tag: +patch

I don't know about e-how.com, as the page you link to is working for me.

However for Youtube the problem seems to be that
http://pagead2.googlesyndication.com/pagead/show_companion_ad.js
is triggering ADJSTEXT, which does a document.write("this ad zapped")
and thus replaces the entire page text.

To fix this you need to define 

STUBURL_ADJSTEXT=$ZAP_BASE/no-op-clear.js

in /etc/adzapper.conf (you probably want to change the other *JS zaps
to use the -clear variant also).

And also, you need to patch /usr/bin/adzapper.wrapper to pass the new
ADJSTEXT zap through to adzapper with the attached patch.

This looks a bit messy to be honest and the zap-setting config code could
do with a re-work, but that is more a matter for upstream.  There is a
new verison out by the way (20110716) but it still has this same problem.

Nick
--- /usr/bin/adzapper.wrapper.orig	2011-08-17 09:45:01.000000000 +0100
+++ /usr/bin/adzapper.wrapper	2011-08-17 13:25:45.000000000 +0100
@@ -25,7 +25,8 @@
 export ZAP_MODE ZAP_BASE ZAP_BASE_SSL ZAP_PREMATCH ZAP_POSTMATCH
 export STUBURL_AD STUBURL_ADSSL STUBURL_ADJS STUBURL_ADHTML STUBURL_ADMP3 \
 	STUBURL_ADPOPUP STUBURL_ADSWF STUBURL_COUNTER STUBURL_COUNTERJS \
-	STUBURL_WEBBUG STUBURL_WEBBUGJS STUBURL_PRINT NO_CHANGE_VALUE
+	STUBURL_WEBBUG STUBURL_WEBBUGJS STUBURL_PRINT NO_CHANGE_VALUE \
+	STUBURL_ANTICRACK STUBURL_ADJSTEXT STUBURL_ADHTMLTEXT
 
 # Here, having arranged the environment, we exec the real zapper:
 

Reply via email to