From: Christian Dywan Date: Tue, 21 Feb 2012 20:47:56 +0000 (+0100) Subject: Allow DuckDuckGo to distinguish Midori X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5176b3812030c307522c252195494e95d195a32d;p=midori Allow DuckDuckGo to distinguish Midori Users who customize the search engine won't be affected by this. --- diff --git a/katze/midori-uri.vala b/katze/midori-uri.vala index e01ba484..6a3c4c82 100644 --- a/katze/midori-uri.vala +++ b/katze/midori-uri.vala @@ -85,6 +85,9 @@ namespace Midori { if (uri == null) return keywords; string escaped = GLib.Uri.escape_string (keywords, ":/", true); + /* Allow DuckDuckGo to distinguish Midori and in turn share revenue */ + if (uri == "https://duckduckgo.com/?q=%s") + return "https://duckduckgo.com/?q=%s&t=midori".printf (escaped); if (uri.str ("%s") != null) return uri.printf (escaped); return uri + escaped;