diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-10-11 12:31:45 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-10-11 12:31:45 +0200 |
commit | 01b66ef0da58dd9b26834be99ef8d5efac4aa26a (patch) | |
tree | 0ab10ddb33b4c268e2fd2faac6f85da127efcd06 /src/adblock | |
parent | inlined "abused" function and removed 2 unuseful calls to updateTabBar (diff) | |
download | rekonq-01b66ef0da58dd9b26834be99ef8d5efac4aa26a.tar.xz |
Calm down kDebug messages
Diffstat (limited to 'src/adblock')
-rw-r--r-- | src/adblock/adblockmanager.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/adblock/adblockmanager.cpp b/src/adblock/adblockmanager.cpp index 7c0b94f2..b18547ad 100644 --- a/src/adblock/adblockmanager.cpp +++ b/src/adblock/adblockmanager.cpp @@ -183,8 +183,7 @@ QNetworkReply *AdBlockManager::block(const QNetworkRequest &request, WebPage *pa // check white rules before :) if (_hostWhiteList.match(host)) { - kDebug() << "****ADBLOCK: WHITE RULE (@@) Matched by host matcher: ***********"; - kDebug() << "UrlString: " << urlString; + kDebug() << "ADBLOCK: WHITE RULE (@@) Matched by string: " << urlString; return 0; } @@ -192,8 +191,7 @@ QNetworkReply *AdBlockManager::block(const QNetworkRequest &request, WebPage *pa { if (filter.match(request, urlString, urlStringLowerCase)) { - kDebug() << "****ADBLOCK: WHITE RULE (@@) Matched: ***********"; - kDebug() << "UrlString: " << urlString; + kDebug() << "ADBLOCK: WHITE RULE (@@) Matched by string: " << urlString; return 0; } } @@ -201,8 +199,7 @@ QNetworkReply *AdBlockManager::block(const QNetworkRequest &request, WebPage *pa // then check the black ones :( if (_hostBlackList.match(host)) { - kDebug() << "****ADBLOCK: BLACK RULE Matched by host matcher: ***********"; - kDebug() << "UrlString: " << urlString; + kDebug() << "ADBLOCK: BLACK RULE Matched by string: " << urlString; AdBlockNetworkReply *reply = new AdBlockNetworkReply(request, urlString, this); return reply; } @@ -215,8 +212,7 @@ QNetworkReply *AdBlockManager::block(const QNetworkRequest &request, WebPage *pa { if (filter.match(request, urlString, urlStringLowerCase)) { - kDebug() << "****ADBLOCK: BLACK RULE Matched: ***********"; - kDebug() << "UrlString: " << urlString; + kDebug() << "ADBLOCK: BLACK RULE Matched by string: " << urlString; QWebElement document = page->mainFrame()->documentElement(); QWebElementCollection elements = document.findAll("*"); @@ -225,7 +221,6 @@ QNetworkReply *AdBlockManager::block(const QNetworkRequest &request, WebPage *pa const QString srcAttribute = el.attribute("src"); if (filter.match(request, srcAttribute, srcAttribute.toLower())) { - kDebug() << "MATCHES ATTRIBUTE!!!!!"; el.setStyleProperty(QL1S("visibility"), QL1S("hidden")); el.setStyleProperty(QL1S("width"), QL1S("0")); el.setStyleProperty(QL1S("height"), QL1S("0")); |