Allow DuckDuckGo to distinguish Midori
Users who customize the search engine won't be affected by this.
This commit is contained in:
parent
ffb86ce7ff
commit
5176b38120
1 changed files with 3 additions and 0 deletions
|
@ -85,6 +85,9 @@ namespace Midori {
|
||||||
if (uri == null)
|
if (uri == null)
|
||||||
return keywords;
|
return keywords;
|
||||||
string escaped = GLib.Uri.escape_string (keywords, ":/", true);
|
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)
|
if (uri.str ("%s") != null)
|
||||||
return uri.printf (escaped);
|
return uri.printf (escaped);
|
||||||
return uri + escaped;
|
return uri + escaped;
|
||||||
|
|
Loading…
Reference in a new issue