You are not logged in.

#1 2012-10-08 17:49:48

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,054

Fanboy adblock list to privoxy converter

I have written a script that converts the Fanboy block list for Opera (http://www.fanboy.co.nz/adblock/opera/) into a list understandable by Privoxy. If there is enough interest I can consider submitting it in the AUR. I have used the opera lists because its format is much simpler than the Adblock format (although it should be adapted relatively easily for the simple cases).

Privoxy decomposes a pattern into two parts: the domain and the path and the matching rules are different for these two parts. The Fanboy list (as any other available list that I know)  matches the URL as a whole. To convert to the Privoxy format, we should be able to tell which part of a URL is to be considered as the domain and which part is to be considered as the path and there is no easy way to do that if wide characters are used. My script uses some heuristic to try to guess which is what but this cannot be 100% guaranteed; but most patterns are correctly translated.

There is a script in the AUR to convert from Easylist (for Adblock) to Privoxy. Unfortunately, this script is buggy. It generates lines like:

&adurl=

This cannot work in Privoxy (as can be checked at http://config.privoxy.org/show-url-info). The previous lines should have been translated:

/.*\&adurl\=

.

Edited: Now available in the AUR: https://aur.archlinux.org/packages.php?ID=63431

Last edited by olive (2012-10-08 20:39:52)

Offline

#2 2012-10-08 18:49:04

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,354
Website

Re: Fanboy adblock list to privoxy converter

I would certainly be interested in an AUR package: this looks to be very helpful. Thanks olive!


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Online

#3 2013-03-23 19:28:24

Convergence
Member
Registered: 2005-07-02
Posts: 370

Re: Fanboy adblock list to privoxy converter

Thanks Olive! I've been unsuccessfully running another script based on adblock plus for a long time. 

I've enabled this filter:  https://www.fanboy.co.nz/fanboy-adblock.txt

Should I enable these as well?
https://www.fanboy.co.nz/fanboy-tracking.txt
https://www.fanboy.co.nz/fanboy-addon.txt


It's a very deadly weapon to know what you're doing
---  William Murderface

Offline

#4 2013-03-23 19:45:12

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,054

Re: Fanboy adblock list to privoxy converter

Convergence wrote:

Thanks Olive! I've been unsuccessfully running another script based on adblock plus for a long time. 

I've enabled this filter:  https://www.fanboy.co.nz/fanboy-adblock.txt

Should I enable these as well?
https://www.fanboy.co.nz/fanboy-tracking.txt
https://www.fanboy.co.nz/fanboy-addon.txt

You should take the list designed for opera (the lists you mention are designed for adblock+), see: https://www.fanboy.co.nz/opera.html . (the CSS filter are not implemented take only the filter lists). Choose the list you want. Use only one file (opera support only one file, so the lists are designed in this way, using more than one file will only add redundancies).

Offline

#5 2013-03-23 20:16:52

Convergence
Member
Registered: 2005-07-02
Posts: 370

Re: Fanboy adblock list to privoxy converter

Oh!  LOL, I guess I didn't know what fanboy was, and assumed that all fanboy filters were designed for opera.  I should have read more carefully.  Thanks for clearing that up.


It's a very deadly weapon to know what you're doing
---  William Murderface

Offline

Board footer

Powered by FluxBB