From 9b4cc804e5b2e3245b37051942c51adbf15e4fc9 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Mon, 13 May 2024 17:39:29 +0300 Subject: [PATCH] browsers: expose to Ecosia that we are using gpo (or policies), remove extraneous PostData from Firefox The logic here is hope that it will stop offering the addon if I am following their instructions and sending them the information. Oh and I added icons --- etc/firefox/policies/policies.json | 7 ++----- etc/opt/chromium/policies/recommended/ecosia.json | 5 +++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/etc/firefox/policies/policies.json b/etc/firefox/policies/policies.json index e9962416..118b33fa 100644 --- a/etc/firefox/policies/policies.json +++ b/etc/firefox/policies/policies.json @@ -199,25 +199,23 @@ "Description": "DuckDuckGo Start page version", "Method": "GET", "Name": "DuckDuckGo Start", - "PostData": "q={searchTerms}", "SuggestURLTemplate": "https://start.duckduckgo.com/ac/?q={searchTerms}&type=list", "URLTemplate": "https://start.duckduckgo.com/?q={searchTerms}" }, { "Alias": "e", "Description": "Ecosia Search Engine", + "IconURL": "https://cdn-static.ecosia.org/static/icons/favicon.ico", "Method": "GET", "Name": "Ecosia", - "PostData": "q={searchTerms}", "SuggestURLTemplate": "https://ac.ecosia.org/autocomplete?q={searchTerms}", - "URLTemplate": "https://www.ecosia.org/search?q={searchTerms}" + "URLTemplate": "https://www.ecosia.org/search?q={searchTerms}&addon=firefoxgpo" }, { "Alias": "b", "Description": "Brave Search", "Method": "GET", "Name": "Brave Search", - "PostData": "q={searchTerms}", "SuggestURLTemplate": "https://search.brave.com/api/suggest?q={searchTerms}", "URLTemplate": "https://search.brave.com/search?q={searchTerms}" }, @@ -226,7 +224,6 @@ "Description": "Brave Search Goggles", "Method": "GET", "Name": "Brave Search Goggles", - "PostData": "q={searchTerms}", "SuggestURLTemplate": "https://search.brave.com/api/suggest?q={searchTerms}", "URLTemplate": "https://search.brave.com/goggles?q={searchTerms}" } diff --git a/etc/opt/chromium/policies/recommended/ecosia.json b/etc/opt/chromium/policies/recommended/ecosia.json index a54aaa96..23a14ba6 100644 --- a/etc/opt/chromium/policies/recommended/ecosia.json +++ b/etc/opt/chromium/policies/recommended/ecosia.json @@ -1,8 +1,9 @@ { "DefaultSearchProviderEnabled": true, + "DefaultSearchProviderImageURL": "https://cdn-static.ecosia.org/static/icons/favicon.ico", "DefaultSearchProviderKeyword": "e", "DefaultSearchProviderName": "Ecosia", - "DefaultSearchProviderNewTabURL": "https://www.ecosia.org/newtab/", - "DefaultSearchProviderSearchURL": "https://www.ecosia.org/search?q={searchTerms}", + "DefaultSearchProviderNewTabURL": "https://www.ecosia.org/newtab/?addon=chromegpo", + "DefaultSearchProviderSearchURL": "https://www.ecosia.org/search?q={searchTerms}&addon=chromegpo", "DefaultSearchProviderSuggestURL": "https://ac.ecosia.org/autocomplete?q={searchTerms}" }