From 5176b3812030c307522c252195494e95d195a32d Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 21 Feb 2012 21:47:56 +0100 Subject: [PATCH] Allow DuckDuckGo to distinguish Midori Users who customize the search engine won't be affected by this. --- katze/midori-uri.vala | 3 +++ 1 file changed, 3 insertions(+) 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;