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

Unified Diff: abp2blocklist.js

Issue 29426594: Issue 3673 - Merge closely matching rules (Closed) Base URL: https://hg.adblockplus.org/abp2blocklist
Patch Set: Merge rules in groups Created May 20, 2017, 9:07 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/abp2blocklist.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: abp2blocklist.js
===================================================================
--- a/abp2blocklist.js
+++ b/abp2blocklist.js
@@ -17,17 +17,17 @@
"use strict";
let readline = require("readline");
let Filter = require("filterClasses").Filter;
let ContentBlockerList = require("./lib/abp2blocklist.js").ContentBlockerList;
var rl = readline.createInterface({input: process.stdin, terminal: false});
-var blockerList = new ContentBlockerList();
+var blockerList = new ContentBlockerList({merge: true, exhaustiveMerge: true});
Sebastian Noack 2017/05/21 21:07:29 Any particular reason why we even make these confi
kzar 2017/05/22 08:47:01 Well the exhaustiveMerge option makes sense, since
Manish Jethani 2017/05/22 09:28:28 Yes, the exhaustive merge gives us 5-10% extra gai
Sebastian Noack 2017/05/22 09:39:25 On the other hand, the Safari extension is current
Sebastian Noack 2017/05/22 09:54:57 Oh, if Safari entirely freezes, that should be avo
Manish Jethani 2017/05/22 17:39:52 EasyList+AA Non-exhaustive: * Rule merging too
Sebastian Noack 2017/05/23 11:59:09 Yeah, I think I agree. Even if we can avoid the fr
rl.on("line", line =>
{
if (/^\s*[^\[\s]/.test(line))
blockerList.addFilter(Filter.fromText(Filter.normalize(line)));
});
rl.on("close", () =>
« no previous file with comments | « no previous file | lib/abp2blocklist.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld