From 863da92c57a5d6245bac3885936f59da88041e75 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 24 May 2017 15:29:25 +0200 Subject: Improved filter rules --- src/webengine/urlinterceptor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/webengine') diff --git a/src/webengine/urlinterceptor.cpp b/src/webengine/urlinterceptor.cpp index ab5ee12..da2925c 100644 --- a/src/webengine/urlinterceptor.cpp +++ b/src/webengine/urlinterceptor.cpp @@ -19,7 +19,7 @@ ******************************************************************************/ #include "urlinterceptor.h" -#include "blocker/blockersubscription.h" +#include "blocker/filtercollection.h" UrlRequestInterceptor::UrlRequestInterceptor(QObject *parent) : QWebEngineUrlRequestInterceptor(parent) @@ -29,7 +29,7 @@ UrlRequestInterceptor::UrlRequestInterceptor(QObject *parent) : void UrlRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info) { #ifdef DEBUG_VERBOSE - qDebug("%s", qUtf8Printable(info.requestUrl().toString())); + qDebug("%s --> [%i] %s", qUtf8Printable(info.firstPartyUrl().toString()), info.resourceType(), qUtf8Printable(info.requestUrl().toString())); #endif for(auto s : m_manager->subscriptions()) { @@ -37,7 +37,7 @@ void UrlRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info) if(r.match) { info.block(r.block); #ifdef DEBUG_VERBOSE - qDebug("+--> matched [%s] [%s]", r.block ? "blocked" : "allowed", qUtf8Printable(r.pattern)); + qDebug(">> matched [%s] [%s]", r.block ? "blocked" : "allowed", qUtf8Printable(r.pattern)); #endif return; } -- cgit v1.2.1