You are not logged in.
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
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
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
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. I will give it a try when I get home.
Thank you!
Offline
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
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
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
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
Offline
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
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
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
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
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
wandaful! Thank you.
Offline
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)
Offline
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 ).
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
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
Last edited by Army (2010-09-08 23:12:18)
Offline
I wanted to thank you for this awesome script.
I've moved to Privoxy because of it.
Thanks for such a valuable resource!
Offline
Very nice script indeed. Has anyone thought about creating an AUR package with a weekly cron update yet?
ᶘ ᵒᴥᵒᶅ
Offline
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.
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
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.
ᶘ ᵒᴥᵒᶅ
Offline
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
Network
Offline
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
Wow, great stuff. I think I won't use adblock anymore.
Privoxy for linux and proxomitron for windows.
Thanks again for great stuff
When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles
Offline