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", () => |