From 718c6d4c33b24723ee6861e017e269662f193b96 Mon Sep 17 00:00:00 2001 From: Benjamin Poulain Date: Thu, 19 Aug 2010 02:35:38 +0200 Subject: Skip the hiding rules specific to domains The rules to hide elements for a specific domains were interpreted as regular RegExp rules, which grows the list of filter to test. Those rules are not working with the current implementation, we should just skip them for efficiency. --- src/adblock/adblockmanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/adblock') diff --git a/src/adblock/adblockmanager.cpp b/src/adblock/adblockmanager.cpp index 600dc5ce..8deb0bcd 100644 --- a/src/adblock/adblockmanager.cpp +++ b/src/adblock/adblockmanager.cpp @@ -150,6 +150,10 @@ void AdBlockManager::loadRules(const QStringList &rules) continue; } + // TODO implement domain-specific hiding + if (stringRule.contains(QL1S("##"))) + continue; + if (_hostBlackList.tryAddFilter(stringRule)) continue; AdBlockRule rule(stringRule); -- cgit v1.2.1