OLD | NEW |
1 Adblock Plus for Chrome, Opera, Microsoft Edge and Firefox | 1 Adblock Plus for Chrome, Opera, Microsoft Edge and Firefox |
2 ========================================================== | 2 ========================================================== |
3 | 3 |
4 This repository contains the platform-specific Adblock Plus source code for | 4 This repository contains the platform-specific Adblock Plus source code for |
5 Chrome, Opera, Microsoft Edge and Firefox. It can be used to build | 5 Chrome, Opera, Microsoft Edge and Firefox. It can be used to build |
6 Adblock Plus for these platforms, generic Adblock Plus code will be extracted | 6 Adblock Plus for these platforms, generic Adblock Plus code will be extracted |
7 from other repositories automatically (see _dependencies_ file). | 7 from other repositories automatically (see _dependencies_ file). |
8 | 8 |
9 Note that the Firefox extension built from this repository is the new | 9 Note that the Firefox extension built from this repository is the new |
10 [WebExtension](https://developer.mozilla.org/en-US/Add-ons/WebExtensions). | 10 [WebExtension](https://developer.mozilla.org/en-US/Add-ons/WebExtensions). |
11 The source code of the legacy Adblock Plus extension | 11 The source code of the legacy Adblock Plus extension |
12 can be found [here](https://hg.adblockplus.org/adblockplus). | 12 can be found [here](https://hg.adblockplus.org/adblockplus). |
13 | 13 |
14 Building | 14 Building |
15 --------- | 15 --------- |
16 | 16 |
17 ### Requirements | 17 ### Requirements |
18 | 18 |
19 - [Mercurial](https://www.mercurial-scm.org/) or [Git](https://git-scm.com/) (wh
ichever you used to clone this repository) | 19 - [Mercurial](https://www.mercurial-scm.org/) or [Git](https://git-scm.com/) (wh
ichever you used to clone this repository) |
20 - [Python 2.7](https://www.python.org) | 20 - [Python 2.7](https://www.python.org) |
21 - [The Jinja2 module](http://jinja.pocoo.org/docs) (>= 2.8) | 21 - [The Jinja2 module](http://jinja.pocoo.org/docs) (>= 2.8) |
22 - [The PIL module](http://www.pythonware.com/products/pil/) | |
23 - For signed builds: [PyCrypto module](https://www.dlitz.net/software/pycrypto/) | 22 - For signed builds: [PyCrypto module](https://www.dlitz.net/software/pycrypto/) |
24 | 23 |
25 ### Building the extension | 24 ### Building the extension |
26 | 25 |
27 Run one of the following commands in the project directory, depending on your | 26 Run one of the following commands in the project directory, depending on your |
28 target platform: | 27 target platform: |
29 | 28 |
30 ./build.py build -t chrome -k adblockpluschrome.pem | 29 ./build.py build -t chrome -k adblockpluschrome.pem |
31 ./build.py build -t edge | 30 ./build.py build -t edge |
32 ./build.py build -t gecko | 31 ./build.py build -t gecko |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 Linting | 89 Linting |
91 ------- | 90 ------- |
92 | 91 |
93 You can lint the code using [ESLint](http://eslint.org). | 92 You can lint the code using [ESLint](http://eslint.org). |
94 | 93 |
95 eslint *.js lib/ qunit/ ext/ chrome/ | 94 eslint *.js lib/ qunit/ ext/ chrome/ |
96 | 95 |
97 You will need to set up ESLint and our configuration first, see | 96 You will need to set up ESLint and our configuration first, see |
98 [eslint-config-eyeo](https://hg.adblockplus.org/codingtools/file/tip/eslint-conf
ig-eyeo) | 97 [eslint-config-eyeo](https://hg.adblockplus.org/codingtools/file/tip/eslint-conf
ig-eyeo) |
99 for more information. | 98 for more information. |
OLD | NEW |