Giter VIP home page Giter VIP logo

privoxy-adblock-jscript's Introduction

privoxy-adblock-jscript

A JScript for Windows (Windows Script Host) that converts Adblock lists to the Privoxy format.

Based on code by Andrwe Lord Weber found here, as modified for OS X by skroll.

This script is modified to work with the Windows Script Host and requires Admin privileges if you've kept the defaults (an installed copy of Privoxy, with configuration files in its installation directory); it is recommended to make a Scheduled Task running this script periodically (about once per week, the same frequency at which Adblock Plus itself updates lists by default).

Note: This script requires sed to be installed on the system; get it as part of GnuWin32 and be sure to add its bin directory (by default C:\Gnu32\bin) to your PATH environment variable. In a future update, the script may be rewritten to no longer rely on sed, just as it no longer relies on wget.

Usage

By default, this script fetches the easylist script and installs it into the Privoxy installation directory, which is also the default directory for configuration, actions, and filter files; first it will try %PROGRAMFILES(X86)%\Privoxy (64-bit Windows) and then %PROGRAMFILES%\Privoxy (32-bit Windows). If that is not appropriate for your system, parameters can be passed to control the behavior of the script.

> privoxy-adblock.js [-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
PROGRAMFILES(X86) 32-bit Program Files directory (x64 Windows only) C:\Program Files (x86)
PROGRAMFILES Program Files directory C:\Program Files

privoxy-adblock-jscript's People

Contributors

lewisje avatar skroll avatar vena avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.