From: Paweł Forysiuk Date: Sat, 27 Aug 2011 14:24:43 +0000 (+0200) Subject: Don't bother with stock, res and favicons uris in adblock X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5572332907db23693cbc3a672e9e3a323a65e1c;p=midori Don't bother with stock, res and favicons uris in adblock --- 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)