| OLD | NEW | 
|---|
| 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 | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 30 ``` | 30 ``` | 
| 31 You will then need to remove any references to the `utils` module from the | 31 You will then need to remove any references to the `utils` module from the | 
| 32 generated file by hand. | 32 generated file by hand. | 
| 33 | 33 | 
| 34 | 34 | 
| 35 ## Usage | 35 ## Usage | 
| 36 | 36 | 
| 37 ``` | 37 ``` | 
| 38 node abp2blocklist.js < easylist.txt > easylist.json | 38 node abp2blocklist.js < easylist.txt > easylist.json | 
| 39 ``` | 39 ``` | 
|  | 40 | 
|  | 41 ## Tests | 
|  | 42 | 
|  | 43 Unit tests live in the `tests/` directory. To run the unit tests ensure you have | 
|  | 44 already installed the required packages (see above) and then type this command: | 
|  | 45 | 
|  | 46 ``` | 
|  | 47 npm test | 
|  | 48 ``` | 
| OLD | NEW | 
|---|