Giter Club home page Giter Club logo

privoxy-adblock's Introduction

privoxy-adblock

A bash script for OS X that converts adblock lists to privoxy's format.

Based on code by Andrwe Lord Weber found here. The original script did not work well in OS X due to the fact that it depended on pidof and other GNU/Linux specific behavior.

This script is modified to work in an OS X environment and does not require root privileges.

Note: This script requires wget to be installed on the system.

Usage

By default, this script fetches the easylist script and installs it into /usr/local/etc/privoxy. If that is not appropriate for your system, parameters can be passed to control the behavior of the script.

$ privoxy-adblock.sh [-d] [-p <privoxy config dir>] [-u <url1>] [-u <url2>]...
Switch/Parameter Description
-d Turn on debugging
-p <privoxy path> Path to privoxy configuration directory
-u <url> Downloads/converts adblock filter list

The script supports the passing of multiple URLs, the output of the converted adblock filter lists will be [basename].script.action and [basename].script.filter.

Once the files have been created, they must be added to the privoxy configuration. For example:

actionsfile easylist.script.action
filterfile easylist.script.filter

Once the file is added, rerunning the script with the same parameters will automatically update the privoxy filters.

Environment Variables

Environment Variable Description Default
SEDCMD The command used to invoke sed sed

privoxy-adblock's People

Contributors

skroll avatar vena avatar

Watchers

Fax O'Therapy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.