You are not logged in.
Hi,
I am trying to add custom filter to my privoxy, but appereantly it doesn't work.
user.action
+filter{google-analytics}
/
default.filter
FILTER: google-analytics remove google analytics
s|<script\s[^>]*?google-analytics.com/urchin.js[^>]*>.*?</script>||gis
s|\burchinTracker\(\);||gis
s|<script\s[^>]*?google-analytics.com/ga.js[^>]*>.*?</script>||gis
s|\b_gaq[^(]*?\([^)]*?);||gis
Should I have done anything else?
Last edited by yasar11732 (2011-07-29 12:40:53)
Yo Dawg, I heard you likes patches, so I have created a patch for your patch, so you can patch your patches before you patch.
Offline
Sorry with the annoyance, problem was with the regular expression, not configuration
Yo Dawg, I heard you likes patches, so I have created a patch for your patch, so you can patch your patches before you patch.
Offline
Ad this to your user.action :
###################
{+block{Google crap} \
+handle-as-empty-document \
}
googlesyndication.com/.*\.js$
google-analytics.com/.*\.js$
###################
¡ pıdnʇs 'ǝldɯıs ʇı dǝǝʞ
Offline