Skip to content

Commit

Permalink
Disable AdblockSimulator since it's slow and doesn't really work. Jus…
Browse files Browse the repository at this point in the history
…t wasting CPU cycles until it's fixed.
  • Loading branch information
vlofgren committed Jun 19, 2023
1 parent 2112520 commit 379bccc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,14 @@ public AdblockSimulator() throws IOException {
}

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) {
Expand Down

0 comments on commit 379bccc

Please sign in to comment.