Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: README.md

Issue 29336753: Issue 3671 - Split out contentBlockerList API (Closed)
Patch Set: Tweaked line skipping logic and addressed a nit Created Feb. 24, 2016, 9:57 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « .hgignore ('k') | abp2blocklist.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # abp2blocklist 1 # abp2blocklist
2 2
3 This is a script to convert [Adblock Plus filter lists](https://adblockplus.org/ filters) 3 This is a script to convert [Adblock Plus filter lists](https://adblockplus.org/ filters)
4 to [WebKit block lists](https://www.webkit.org/blog/3476/content-blockers-first- look/). 4 to [WebKit block lists](https://www.webkit.org/blog/3476/content-blockers-first- look/).
5 5
6 Note that WebKit content blockers are fairly limited. Hence, not all filters 6 Note that WebKit content blockers are fairly limited. Hence, not all filters
7 can be converted (in a compatible way), and some differences compared to Adblock 7 can be converted (in a compatible way), and some differences compared to Adblock
8 Plus for other browsers are expected. 8 Plus for other browsers are expected.
9 9
10 This script is used to convert the filter lists for 10 This script is used to convert the filter lists for
11 [Adblock Plus for iOS](https://adblockplus.org/releases/adblock-plus-10-for-ios- released). 11 [Adblock Plus for iOS](https://adblockplus.org/releases/adblock-plus-10-for-ios- released).
12 12
13 ## Requirements 13 ## Requirements
14 14
15 The required packages can be installed via [NPM](https://npmjs.org): 15 The required packages can be installed via [NPM](https://npmjs.org):
16 16
17 ``` 17 ```
18 npm install 18 npm install
19 ``` 19 ```
20 20
21 ### filterClasses.js
22
23 The filterClasses module in `node_modules/filterClasses.js` is generated from
24 the module in the `adblockpluscore` repository. It has been generated using
25 JS Hydra, and small modifications made. If you need to re-generate the file run
26 this command (adjusting the paths as appropriate):
27
28 ```
29 python buildtools/jshydra/abp_rewrite.py adblockpluscore/lib/filterClasses.js | grep -vi filterNotifier > ../abp2blocklist/node_modules/filterClasses.js
30 ```
31 You will then need to remove any references to the `utils` module from the
32 generated file by hand.
33
34
21 ## Usage 35 ## Usage
22 36
23 ``` 37 ```
24 node abp2blocklist.js < easylist.txt > easylist.json 38 node abp2blocklist.js < easylist.txt > easylist.json
25 ``` 39 ```
OLDNEW
« no previous file with comments | « .hgignore ('k') | abp2blocklist.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld