Re: external-filter example
Lee <[email protected]> Wed, 22 Jul 2020 15:29:07 -0400
| Newsgroups | gmane.comp.web.privoxy.user |
|---|---|
| Message-ID | <CAD8GWsttbjoSRosRAWRkPNtCOU353y92z+eKJzOfXnptHbF-ZA@mail.gmail.com> |
On 7/22/20, U.Mutlu <[email protected]> wrote: > Update: sorry, had forgotten to build with "--enable-external-filters". > After rebuilding and reinstalling it now starts ok, > but the external-filter does not get invoked :-( > How to fix that? I've never tried using external filters, so I'm not going to be a whole lot of help but https://www.privoxy.org/user-manual/actions-file.html#FILTER (Note: as of version 3.0.3 plain text documents are exempted from filtering, because web servers often use the text/plain MIME type for all files whose type they don't know.) Have you added debug 64 # debug regular expression filters to the config file to see if privoxy tries to run the filter? https://www.privoxy.org/gitweb/?p=privoxy.git;a=blob;f=filters.c;h=b490353b2d93c5b1cc40ab80a22cc717372f6cda;hb=HEAD#l1834 If the filter isn't being called, maybe you need https://www.privoxy.org/user-manual/filter-file.html Enabled content filters are applied to any content whose "Content Type" header is recognised as a sign of text-based content, with the exception of text/plain. Use the force-text-mode action to also filter other content. > U.Mutlu wrote on 07/22/2020 07:03 PM: >> Hi, <.. snip ..> >> I'm now trying to create an external-filter for experimenting. I did these >> steps: <.. snip ..> >> user.action: >> myfilters = +filter{html-annoyances} +filter{js-annoyances} >> +filter{all-popups}\ >> +filter{webbugs} +filter{banners-by-size}\ >> +external-filter{myTee} <.. snip ..> >> Btw, is the word "myfilters" in the config files a hardcoded special word >> or is it just a user-defined one? It's a user-defined alias https://www.privoxy.org/user-manual/actions-file.html#ALIASES Lee