diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-11-23 01:25:17 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-11-23 01:25:17 +0100 |
commit | ae723ad13075808d687ad1b14f46f4a8cae87849 (patch) | |
tree | 0638fccb68de55749e33abf3f5512a35b61e096a /src/webpage.cpp | |
parent | Ok, same other bits on the adblock manager. (diff) | |
download | rekonq-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.cpp | 4 |
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); } |