From b5572332907db23693cbc3a672e9e3a323a65e1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Forysiuk?= Date: Sat, 27 Aug 2011 16:24:43 +0200 Subject: [PATCH] Don't bother with stock, res and favicons uris in adblock --- extensions/adblock.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extensions/adblock.c b/extensions/adblock.c index 3b64feeb..7b19bceb 100644 --- a/extensions/adblock.c +++ b/extensions/adblock.c @@ -763,6 +763,11 @@ adblock_resource_request_starting_cb (WebKitWebView* web_view, return; if (!strncmp (req_uri, "data", 4) || !strncmp (req_uri, "file", 4)) return; + if (!strncmp (req_uri, "stock", 5) || !strncmp (req_uri, "res", 3)) + return; + + if (g_str_has_suffix (req_uri, "favicon.ico")) + return; msg = webkit_network_request_get_message (request); if (!msg) -- 2.39.5