Post Reply 
Adapting “hosts” file block lists to Privoxy's way of blocking…
Jul. 25, 2015, 03:45 PM (This post was last modified: Jul. 25, 2015 04:14 PM by cattleyavns.)
Post: #4
RE: Adapting “hosts” file block lists to Privoxy's way of blocking…
Hi!
I wrote a tool like that aready using Autohotkey, its name is convert2privoxy, here it is: https://www.dropbox.com/s/hdkhz45w5jpjfk...y.exe?dl=0

Source code (you can modify it if you want, Autohotkey is the easiest Programming Language, it still left a very small bug with Hosts2Privoxy feature, but we can simply delete function() { and )}; line, I will fix this problem later (no, it is not, that bug was caused by the APKHostsFileEngine...)): https://www.dropbox.com/s/gqe58zta1iecys...y.ahk?dl=0

Okay, let us try it! I tried with the biggest hosts file in the world using APKHostsFileEngine (this tool is crazy!, it generate a hosts file from ALL source)

https://www.dropbox.com/s/9x5k2bp81cbrpr...0.jpg?dl=0

- Copy your hosts file into the 1st textbox, click Hosts2Privoxy and copy the content from 2nd textbox into your Privoxy action file, that is all!
Plus: This tool can make Greasemonkey script, Stylish script run on Privoxy, it also can convert AdBlock list like Easylist to Privoxy (with Element Hiding Helper's filter (for example: ###ads)).
Plus2: This tool might able to run on Linux using IronAHK, I'm not sure, but if you want to convert something and you don't have Windows OS to run my exe file then I can help you.

The result (5MB): https://www.dropbox.com/s/jh572cbgmmm65i...ction?dl=0

You might want to check my lastest Privoxy bundle (if you know ImgLikeOpera, this bundle contains some filters like that, also IframeLikeOpera, VideoLikeOpera, ObjectLikeOpera.. Big Teeth): https://www.dropbox.com/s/2dtm8pvvc9z7bw...e.zip?dl=0

Good luck and have fun! Happy surfing!
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Adapting “hosts” file block lists to Privoxy's way of blocking… - cattleyavns - Jul. 25, 2015 03:45 PM

Forum Jump: