Disable AdblockSimulator since it's slow and doesn't really work. Just wasting CPU cycles until it's fixed.

This commit is contained in:
Viktor Lofgren 2023-06-12 17:17:27 +02:00 committed by Viktor
parent 21125206b4
commit 379bccc1a3

View File

@ -44,11 +44,14 @@ public class AdblockSimulator {
}
public boolean hasAds(Document document) {
return false;
/* Disabled for now, it doesn't work very well and it's very slow.
RuleVisitor ruleVisitor = new RuleVisitor();
document.filter(ruleVisitor);
return ruleVisitor.sawAds;
return ruleVisitor.sawAds; */
}
private void addRule(String s) {