The Un-Official Proxomitron Forum
Filter to use with Privoxy/Tor - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38)
+--- Forum: Filter Help/Request (/forumdisplay.php?fid=31)
+--- Thread: Filter to use with Privoxy/Tor (/showthread.php?tid=711)



Filter to use with Privoxy/Tor - Guest - Jan. 06, 2006 05:15 PM

Hi. I'm hoping someone can help me out here. I have the Proxo/Privoxy/Tor chain set up for when I use Tor. For normal browsing, I just use Proxo only. The only time I use Privoxy is to socksify Proxo for Tor. What I'd like is to change the title of a page to reflect the fact that Privoxy/Tor is in use (basically, whenever Proxo is using proxy 127.0.0.1:8118). I figured out the easy part:
Quote:[Patterns]
Name = "Tor in Use?"
Active = True
URL = ??
Bounds = ??
Limit = 1056
Match = "<title>"
Replace = "<title> ==== TOR via PROXY ==== "
What I can't figure out is the variable that defines whether Proxy is using a remote proxy or even if there is such a variable.

If the color of the title bar can be changed, that would be really great.

If someone can point me to a reference that lists some of the more uncommon variables having to do with the cosmetic appearance of a page that can be manipulated, that'd be really, really great. Big Teeth


- Guest - Jan. 10, 2006 08:41 AM

Well, I did some looking into this and it appears that there's no way to include global setting variables into a Proxo filter. So what I did is make a Privoxy filter which adds a "Tor in Use"-type line to the title bar and a Proxo filter which adds a "Proxo in Use"-type line in the absence of the "Tor in Use" line. The only glitch I have is that there are some pages that, for whatever reason, can't be filtered by Privoxy. It goes through Privoxy but isn't affected by any filter I use. Shock Oh well.


- JJoe - Jan. 10, 2006 06:32 PM

Another solution would be to add another CFG.
Make a copy of your default, add your 'title filter', set it to use Privoxy, and rename it DefaultWithPrivoxy.

Then you could switch back and forth by using shortcuts or the right-click menu.


HTH


- Guest - Jan. 12, 2006 08:59 AM

That would work but I think it's better to add the to the title with Privoxy. That way, if I clicked off the remote proxy and didn't remember, I would see it in the title bar.