Index: abp2blocklist.js |
=================================================================== |
--- a/abp2blocklist.js |
+++ b/abp2blocklist.js |
@@ -27,10 +27,11 @@ |
rl.on("line", line => |
{ |
if (/^\s*[^\[\s]/.test(line)) |
blockerList.addFilter(Filter.fromText(Filter.normalize(line))); |
}); |
rl.on("close", () => |
{ |
- console.log(JSON.stringify(blockerList.generateRules(), null, "\t")); |
+ console.log(JSON.stringify(blockerList.generateRules({merge: true}), null, |
+ "\t")); |
}); |