surf-adblock

Surf adblock web extension
git clone git://git.codemadness.org/surf-adblock
Log | Files | Refs | README | LICENSE

commit 02097376a8815d907680c2fa94d4b740990f74b2
parent fd00cc5304e3e118f4c692cede055cd2baf62307
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun,  4 Jun 2017 12:44:22 +0200

wip

Diffstat:
MTODO | 4++++
Msurf-adblock.c | 2++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/TODO b/TODO @@ -7,10 +7,14 @@ - benchmark rule matching (timing). - bloom filters? some kind of cache? - optimize simple filter case. + - also for single wildcard (at most start or end)? */bla or /bla* - support separator "^" = [/\?]? - test it better. +- CSS: separate CSS rules so it never is iterated in request rules. + ? Cache all global rules, iterate site rules per site? + === - there is a websocket option? ignore it: block it in surf itself. diff --git a/surf-adblock.c b/surf-adblock.c @@ -535,9 +535,11 @@ matchrule(struct filterrule *f, const char *uri, const char *type, } if (f->css) { /* DEBUG */ +#if 0 if (f->isexception) printf("DEBUG, exception rule, CSS: %s, match? %d\n", f->css, r); +#endif return r; }