libre.patch 1.6 KB

1234567891011121314151617181920212223242526
  1. diff -Naurp1 a/core/preferences.vala b/core/preferences.vala
  2. --- a/core/preferences.vala 2019-07-30 03:59:54.000000000 +0600
  3. +++ b/core/preferences.vala 2020-10-21 22:22:49.185688249 +0600
  4. @@ -113,5 +113,3 @@ namespace Midori {
  5. var combo = new Gtk.ComboBoxText ();
  6. - combo.append ("https://duckduckgo.com/?q=%s", "Duck Duck Go");
  7. - combo.append ("http://search.yahoo.com/search?p=", "Yahoo");
  8. - combo.append ("http://www.google.com/search?q=%s", "Google");
  9. + combo.append ("https://duckduckgo.com/html/?q=%s", "DuckDuckGo HTML");
  10. settings.bind_property ("location-entry-search", combo, "active-id", BindingFlags.SYNC_CREATE | BindingFlags.BIDIRECTIONAL);
  11. diff -Naurp1 a/core/settings.vala b/core/settings.vala
  12. --- a/core/settings.vala 2019-07-30 03:59:54.000000000 +0600
  13. +++ b/core/settings.vala 2020-10-21 22:22:56.590687905 +0600
  14. @@ -123,4 +123,4 @@ namespace Midori {
  15. // Allow DuckDuckGo to distinguish Midori and in turn share revenue
  16. - if (uri == "https://duckduckgo.com/?q=%s") {
  17. - return "https://duckduckgo.com/?q=%s&t=midori".printf (escaped);
  18. + if (uri == "https://duckduckgo.com/html/?q=%s") {
  19. + return "https://duckduckgo.com/html/?q=%s&t=midori".printf (escaped);
  20. } else if (uri.str ("%s") != null) {
  21. @@ -131,3 +131,3 @@ namespace Midori {
  22. - string default_search = "https://duckduckgo.com/?q=%s";
  23. + string default_search = "https://duckduckgo.com/html/?q=%s";
  24. public string location_entry_search { owned get {