Privox filter sometimes not working
"Christian v. d. Weth" <[email protected]> Mon, 27 Jan 2014 19:24:39 +0100 (CET)
| Newsgroups | gmane.comp.web.privoxy.devel |
|---|---|
| Message-ID | <trinity-ec9483f2-512a-42a4-9b19-c33eeeda8daf-1390847079877@3capp-gmx-bs52> |
Dear all, I'm trying to use a local Privoxy proxy to insert a Javascript library into the header of each requested file. In principle, this is pretty straightforward. My user-defined filter looks like this: FILTER: test-filter Just a test filter s@</head>@<script type="text/javascript" charset="utf-8" src="http://localhost/test.js"></script></head>@sigU For most of the pages it works perfectly fine. I can see the line in the source code of each page and the logic of the script es executed. However, for some sites it doesn't work at all. At least it doesn't work with Google. Although the debug output tells me Re-Filter: Adding re_filter job 's@</head>@<script type="text/javascript" charset="utf-8" src="http://localhost/test.js"></script></head>@sigU' to filter test-filter succeeded. I can't see neither the line in the source code of the page nor any effects of the script. I guess the debug statement doesn't mean that much, since it's always successful even when there was no match. I can only assume the the Google page is highly dynamic and basically everything is fetched using additional requests or something. But I thought that at least the <head>...</head> part needs to be sent as usual. Even when I read www.google.com via a simple Python script I can see the <head>...</head> stuff. And again, for all other sites I tried so far it works like charm. Just Google fails. Any hints? Thanks a lot! Christian ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Ijbswa-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ijbswa-developers