-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cosmetic bucket performance improvements + stabilizations (#163)
* [BREAKING] `getCosmeticsFilter` API changed to allow finer-grain subsetting of cosmetic filters returned: hostname-specific, DOM-specific, generic, etc. * [BREAKING] cosmetic unhide filters without hostname constraints are allowed. * [BREAKING] `NetworkFilter.isCptAllowed` now accept request type as a string. * [BREAKING] drop support for legacy Firefox Bootstrap request types. * Fix matching of hostnames anchors with wildcard. * Add support for `$frame` option in network filters. * Add support for `$document` and `$doc` options in network filters. * Add soft dependency to tldts to simplify API - left as require/import in normal bundles - bundled in minified bundles * Add tests for Request abstraction * Add static method helpers to create Request instances - `Request.fromRawDetails(...)` - `Request.fromWebRequestDetails(...)` - `Request.fromPuppeteerDetails(...)` - `Request.fromElectronDetails(...)` * Add tests for injection using `jsdom` * Cosmetic filtering performance improvements - Make use of DOM information to return subset of filters: ids, classes, hrefs - Make use of MutationObserver from content-script to return new DOM info * Create integration benchmark to measure full extension * Add Request parsing micro-benchmark * Update bench/comparison to use adblock-rs instead of ad-block
- Loading branch information
Showing
44 changed files
with
8,717 additions
and
6,371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,21 +10,21 @@ requests.json: | |
# VERSION: 69118b828db0f6a53bc2306deacffc5361aeef0c | ||
./blockers/adblockpluscore: | ||
git clone --branch=next https://github.com/adblockplus/adblockpluscore.git ./blockers/adblockpluscore | ||
cd ./blockers/adblockpluscore && git reset --hard 69118b828db0f6a53bc2306deacffc5361aeef0c | ||
cd ./blockers/adblockpluscore && git reset --hard c84ece65137ef991559c6b78d13eae3296236b4e | ||
|
||
# VERSION: 0.2.0 | ||
../../node_modules/abp-filter-parser: | ||
npm install --save https://github.com/duckduckgo/abp-filter-parser.git#0.2.0 | ||
npm install --save https://github.com/duckduckgo/abp-filter-parser.git | ||
cd ../../node_modules/abp-filter-parser/ && npm install && cd - | ||
|
||
# VERSION: 4.1.7 | ||
../../node_modules/ad-block: | ||
npm install --save [email protected] | ||
# VERSION: latest | ||
../../node_modules/adblock-rs: | ||
npm install --save adblock-rs | ||
|
||
../../dist: | ||
cd ../../ && npm ci && npm pack | ||
|
||
brave: ../../node_modules/ad-block | ||
brave: ../../node_modules/adblock-rs | ||
NODE_ENV=production node run.js brave requests.json | ||
|
||
cliqz: | ||
|
@@ -57,7 +57,7 @@ adblockfast: | |
deps: requests.json \ | ||
../../dist \ | ||
../../node_modules/abp-filter-parser \ | ||
../../node_modules/ad-block \ | ||
../../node_modules/adblock-rs \ | ||
../../node_modules/jsdom \ | ||
../../node_modules/puppeteer-pool \ | ||
../../node_modules/sandboxed-module \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.