From 5d6b11235dfa850fc8b7cecf472e5c454c9cbd4b Mon Sep 17 00:00:00 2001
From: Ruben Rodriguez <ruben@trisquel.info>
Date: Mon, 27 Jul 2020 19:57:53 -0400
Subject: [PATCH] Abrowser: disable ddg affiliate tag

---
 helpers/DATA/firefox/settings.js | 2 +-
 helpers/make-firefox             | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/helpers/DATA/firefox/settings.js b/helpers/DATA/firefox/settings.js
index c7385678..2daf059d 100644
--- a/helpers/DATA/firefox/settings.js
+++ b/helpers/DATA/firefox/settings.js
@@ -8,7 +8,7 @@ pref("pfs.datasource.url", "https://trisquel.info/sites/pfs.php?mime=%PLUGIN_MIM
 pref("pfs.filehint.url", "https://trisquel.info/sites/pfs.php?mime=%PLUGIN_MIMETYPE%");
 
 // I'm feeling Ducky.
-pref("keyword.URL", "https://duckduckgo.com/?t=trisquel&q=!+");
+pref("keyword.URL", "https://duckduckgo.com/?q=!+");
 pref("browser.search.defaultenginename", "DuckDuckGo");
 pref("browser.search.order.1", "DuckDuckGo");
 pref("browser.search.defaultenginename", "DuckDuckGo");
diff --git a/helpers/make-firefox b/helpers/make-firefox
index 8a406d5c..9a1b0a67 100644
--- a/helpers/make-firefox
+++ b/helpers/make-firefox
@@ -18,7 +18,7 @@
 #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 #
 
-VERSION=72
+VERSION=73
 
 . ./config
 
@@ -93,8 +93,8 @@ rm debian/patches/ubuntu-bookmarks*
 find debian/searchplugins |grep google| xargs -i /bin/sed '/ubuntu/d; /channel/d' -i {}
 find debian/searchplugins |grep amazon| xargs -i /bin/sed '/canoniccom/d;' -i {}
 
-#Replace canonical referer with our own for duckduckgo
-find |grep -e duckduckgo.xml -e ddg.xml | xargs -i /bin/sed 's/canonical/trisquel/' -i {}
+#Disable canonical referrer on DDG
+sed 's/&amp;t=canonical//' -i debian/searchplugins/ddg.xml
 
 # Make DuckDuckGo the default engine
 rm debian/patches/no-region-overrides-for-google-search.patch debian/patches/partially-revert-google-search-update.patch
-- 
GitLab