From 0e4ee2ed1c64130262e42ddfc87f2d8944c5a10c Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sat, 7 Jul 2018 19:45:45 +0200 Subject: Integrate urlfilter with urlrequestinterceptor --- doc/UrlFilter.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/UrlFilter.md b/doc/UrlFilter.md index cea2397..b521228 100644 --- a/doc/UrlFilter.md +++ b/doc/UrlFilter.md @@ -19,13 +19,17 @@ There are 4 Filter Domain types: ## FilterRule Filter rules contain information on how a request should be modified. -### "action" +### Action - Whitelist - allow this request - Blacklist - block this request - Redirect - redirect this request - SetHeader - apply a list of headers -### "regexp", "contains", "endswith" +### Match Type +- "regexp" +- "contains" +- "endswith" +- if none is specified, all URLs are matched ### JSON Allow all URLs that contain "waifu.png" @@ -56,7 +60,7 @@ Redirect URLs containing "ads/annoying-spam.gif" to "waifu.tld/waifu.gif" Set some headers { "action" : "SetHeader" - "header" : [ "DNT" : "1" ] + "headers" : [ "DNT:1" ] } ## QWebEngineUrlRequestInterceptor -- cgit v1.2.1