Valkertown Blog

I used to write about electronics…

Valkertown Blog header image 2

Polipo and Adblock Filters for Uzbl

August 20th, 2009 by Carlos Perilla

Well this is a micro post about polipo and how do you setup it with adblock filters. First adblockplus is capable of mangling the rendered hmtl to remove adds and that makes it better to anything we can achieve with polipo, but what we get with polipo filtering it’s good enough at least fo me.

You need to find an AdblockPlus filter file, there are lots and a quick google will get you one, then you need the adblock2polipo.sh that’s found here:

Adblock2polipo.sh

Then you need to convert every . in \., ? in \? and | in \|.

Finally cut out the mangling filters, usually the block filters are clustered on the top of the file and once you see a mangling rule everything down there should be cut out from the filter file.

That’s all, put the resulting file in ~/.polipo-forbidden and hope everything went fine.

Good luck

Tags:   · · Comments

  • El Bunto
    Nice script, but it needs to start with #!/bin/bash as it is not valid for sh on systems where sh is not soft-linked to bash.

    Otherwise:
    ./adblockplusfilter2polipo.sh: 22: [[: not found
blog comments powered by Disqus