wip - surf-adblock - Surf adblock web extension
(HTM) git clone git://git.codemadness.org/surf-adblock
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 02097376a8815d907680c2fa94d4b740990f74b2
(DIR) parent fd00cc5304e3e118f4c692cede055cd2baf62307
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 4 Jun 2017 12:44:22 +0200
wip
Diffstat:
M TODO | 4 ++++
M surf-adblock.c | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
---
(DIR) 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.
(DIR) 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;
}