Using the Flashblock plugin with Privoxy

Introduction

This guide describes how to use the Chrome Flashblock plugin with Privoxy so you can use it with any modern Javascript-capable browser. For me this also makes an "extensions system" in a browser redundant.

Get Flashblock

Privoxy configuration

Add a flashblock.filter file with the following contents, you can change the javascript src to the location you uploaded flashblock.js to:

FILTER: flashblock Insert javascript from Chromes Flashblock plugin. s@(<\/html>)@<script src="http://www.codemadness.nl/downloads/browsing/flashblock.min.js" type="text/javascript"></script>$1@Usgim

Add this to your user.action file, this will add flashblock.js to all pages:

{ +filter{flashblock} } /

To your config.txt file add:

filterfile flashblock.filter

Word after

You can use this technique to add your own javascripts, stylesheets or other content to each page. Make sure to setup caching for your HTTP server when serving your files to reduce bandwidth and reduce latency.

Update: i've also uploaded an Adblock stylesheet you can use (CSS output from the Adblock Chrome plugin): http://www.codemadness.nl/downloads/browsing/adblock.min.css.

Make a adblock.filter file with the following contents (include the filter like described above):

FILTER: adblock Insert stylesheet from Chromes adblock plugin. s@(<\/html>)@<link rel="stylesheet" type="text/css" href="http://www.codemadness.nl/downloads/browsing/adblock.min.css"/>$1@Usgim