summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-23 01:25:17 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-23 01:25:17 +0100
commitae723ad13075808d687ad1b14f46f4a8cae87849 (patch)
tree0638fccb68de55749e33abf3f5512a35b61e096a /src/webpage.cpp
parentOk, same other bits on the adblock manager. (diff)
downloadrekonq-ae723ad13075808d687ad1b14f46f4a8cae87849.tar.xz
First adblock implementation. now rekonq seems... slower :(
But at least it's ads free!
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 9803d8a3..e8c204f8 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -253,5 +253,9 @@ QString WebPage::errorPage(QNetworkReply *reply)
bool WebPage::authorizedRequest(const QUrl &url) const
{
+ // we filter just http sites
+ if(url.scheme() != QLatin1String("http"))
+ return true;
+
return m_adBlockMan->isUrlAllowed(url);
}