You are not logged in.

#1 2010-07-09 11:18:02

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

AdblockPlus to Privoxy

Hi,

I've written a little script to convert AdblockPlus filterlists for Privoxy usage.
You can find it here.

If there are any suggestions feel free to post them here or on the site.

Regards,
Andrwe

Last edited by Andrwe (2010-09-09 18:13:07)


Website: andrwe.org

Offline

#2 2010-07-09 11:38:40

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: AdblockPlus to Privoxy

I'm using chrome and, as I understand it from various posts, the trouble with the adblock extension is that it downloads the adverts then decides not to display them? On my laptop with chrome I decided not to use the adblock extension but instead set up privoxy and polipo-git. Most adverts get killed.

So I was wondering why you decided to write your script e.g. if you had a specific problem with privoxy failing to block certain adverts? Or maybe you visit sites that cleverly get around privoxy?

Offline

#3 2010-07-09 11:49:20

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: AdblockPlus to Privoxy

I'm using privoxy I only want to extend the blocking lists of privoxy with the lists of AdblockPlus (which are IMO better maintained) and that is what this script does.


Website: andrwe.org

Offline

#4 2010-07-09 12:50:07

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: AdblockPlus to Privoxy

AAAAAUUGH I LOVE YOU!!!!!!1

It was three weeks ago that I was looking for this. I Duck Duck Go'd a lot but didn't find anything. I'm not surprised something this awesome would come from someone involved in the Arch Linux community. wink I will give it a try when I get home.

Thank you! big_smile

Offline

#5 2010-07-09 12:52:18

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: AdblockPlus to Privoxy

Andrwe wrote:

AdblockPlus ... which are IMO better maintained

Fair enough, I'll keep a link to your script in my "linux notes" in case the sites I visit aren't kept clean enough by privoxy, thanks.

Offline

#6 2010-07-09 14:58:04

surfed
Member
From: Vienna Austria
Registered: 2009-10-30
Posts: 86

Re: AdblockPlus to Privoxy

vacant wrote:

I'm using chrome and, as I understand it from various posts, the trouble with the adblock extension is that it downloads the adverts then decides not to display them?

Not any more, it now blocks before downloading them.

Offline

#7 2010-07-09 15:31:36

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: AdblockPlus to Privoxy

surfed wrote:
vacant wrote:

I'm using chrome and, as I understand it from various posts, the trouble with the adblock extension is that it downloads the adverts then decides not to display them?

Not any more, it now blocks before downloading them.

That's the opposite of what I understand about Adblock for Chrome. Do you have a source for that information?

Last edited by drcouzelis (2010-07-09 15:50:53)

Offline

#8 2010-07-09 16:25:08

rebugger
Member
From: Germany
Registered: 2007-10-28
Posts: 229

Re: AdblockPlus to Privoxy

https://chrome.google.com/extensions/de … idom?hl=en

Note that Chrome doesn't actually support this all the way, so a few resources might still load before AdBlock can get to them, in which case we'll remove those as usual.

There is still some stuff loaded and hidden...

Your script is awesome - just moved back to privoxy smile

Offline

#9 2010-07-09 19:36:02

Atragor
Member
Registered: 2009-02-28
Posts: 59

Re: AdblockPlus to Privoxy

Don't AdBlock's lists use syntax that significantly differs from the one used in Privoxy?

For example, the following line from RuAdList AdBlock's subscription doesn't work:

\|\|b\.ddestiny\.ru^

In AdBlock two vertical lines in front of an expression mean the beginning of domain name, but in Privoxy they don't seem to have any special meaning, so this rule isn't applied. Maybe I've missed some configuration option?

Offline

#10 2010-07-09 20:33:31

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: AdblockPlus to Privoxy

You are right.
This and some other stuff like @@ = whitelist are things I'll implement correctly in the next version.
I just have started to analyze adblock lists and convert them into privoxy syntax.


Website: andrwe.org

Offline

#11 2010-07-21 17:24:00

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: AdblockPlus to Privoxy

Just for you to know, unfortunately the power supply of my main computer burned out (was nice fume).
I've written the script using that pc and hadn't commited the newest version to my git where I already had implemented the conversion of about 70 % of the adblock list.
But my vendor told me that I'll get a new power supply till friday so I'll release the next version next week after testing.


Website: andrwe.org

Offline

#12 2010-07-21 18:59:43

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: AdblockPlus to Privoxy

sed '/^!.*/d;1,1 d;s/\./\\./g;s/\?/\\?/g;s/#/\\#/g;s/\*/.*/g;s/(/\\(/g;s/)/\\)/g;s/\[/\\[/g;s/\]/\\]/g;s/|/\\|/g' ${file} >> ${actionfile}

That's some sick sed work right there.
Cheers!

Offline

#13 2010-07-21 19:51:08

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: AdblockPlus to Privoxy

Ranguvar wrote:

sed '/^!.*/d;1,1 d;s/\./\\./g;s/\?/\\?/g;s/#/\\#/g;s/\*/.*/g;s/(/\\(/g;s/)/\\)/g;s/\[/\\[/g;s/\]/\\]/g;s/|/\\|/g' ${file} >> ${actionfile}

That's some sick sed work right there.
Cheers!

Thanks but that is nothing the newest version is more sick/complicated which is why I can't recall all of it and I have to wait for the new power supply.


Website: andrwe.org

Offline

#14 2010-08-19 19:04:26

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: AdblockPlus to Privoxy

wandaful! Thank you.

Offline

#15 2010-08-26 19:10:22

zenix
Member
From: Earth - Save it!
Registered: 2007-08-05
Posts: 104
Website

Re: AdblockPlus to Privoxy

Looking at your wiki, it seems like you haven't uploaded the updated version with || and @@ support yet.

I hope the vendor hasn't shorted you! (pun intended)


I made an AUR helper once.
I also go by evaryont and nogweii elsewhere on the internet.
Check out my projects and packages.

Offline

#16 2010-08-26 20:58:23

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: AdblockPlus to Privoxy

zenix wrote:

Looking at your wiki, it seems like you haven't uploaded the updated version with || and @@ support yet.

I hope the vendor hasn't shorted you! (pun intended)

You're right the new version isn't out.
I'm sorry for the delay but the vendor isn't responsible.
I just have some problems implementing domain-based filters but I've decided that I'll give that to you in the next version so it will be online after the weekend.

Edit: I've uploaded the new version. Fixed the last bug of version 0.2 already (just a little typo which removed the config file wink).
To use this version correctly please remove the old action and filter files (**not** match-all.action, user.* and default.*) in your privoxy-config folder and in the config file.

Last edited by Andrwe (2010-08-26 21:13:47)


Website: andrwe.org

Offline

#17 2010-09-08 23:12:03

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: AdblockPlus to Privoxy

I tried this again and it works perfectly! Thanks a lot man! I've been using firefox with noscript for the last couple of days and with these filters added to privoxy you can really see a huge difference regarding facebook shitness etc. Now I feel a bit safer with jumanji smile

Last edited by Army (2010-09-08 23:12:18)

Offline

#18 2010-11-23 14:00:05

jugs
Member
Registered: 2007-12-05
Posts: 39

Re: AdblockPlus to Privoxy

I wanted to thank you for this awesome script.
I've moved to Privoxy because of it.
Thanks for such a valuable resource!

Offline

#19 2010-11-23 14:27:50

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: AdblockPlus to Privoxy

Very nice script indeed. Has anyone thought about creating an AUR package with a weekly cron update yet? smile


ᶘ ᵒᴥᵒᶅ

Offline

#20 2010-11-23 14:42:21

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: AdblockPlus to Privoxy

jugs wrote:

I wanted to thank you for this awesome script.
I've moved to Privoxy because of it.
Thanks for such a valuable resource!

No problem.

litemotiv wrote:

Very nice script indeed. Has anyone thought about creating an AUR package with a weekly cron update yet? smile

If you want I can write one and maintain it.


Website: andrwe.org

Offline

#21 2010-11-23 14:43:42

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: AdblockPlus to Privoxy

Andrwe wrote:
litemotiv wrote:

Very nice script indeed. Has anyone thought about creating an AUR package with a weekly cron update yet?

If you want I can write one and maintain it.

That would be great, thanks. smile


ᶘ ᵒᴥᵒᶅ

Offline

#22 2010-11-23 20:44:13

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: AdblockPlus to Privoxy

Hmm, I just finished the PKGBIULD but I don't really know which category I should use.
Could you suggest one?


Website: andrwe.org

Offline

#23 2010-11-23 21:37:07

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: AdblockPlus to Privoxy

Network

Offline

#24 2010-11-23 21:44:30

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: AdblockPlus to Privoxy

Ok, thank you.

So here it is:
http://aur.archlinux.org/packages.php?ID=43861
And I've also added it to my repository.

If you encounter some bugs or have feature requests you can post themin the tracker I've just installed:
http://andrwe.org/doku.php/bugtracker/p … ocklist.sh


Website: andrwe.org

Offline

#25 2010-12-27 10:32:09

nXqd
Member
Registered: 2010-07-01
Posts: 173

Re: AdblockPlus to Privoxy

Wow, great stuff. I think I won't use adblock anymore.
Privoxy for linux and proxomitron for windows.
Thanks again for great stuff smile


When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles

Offline

Board footer

Powered by FluxBB