From 9a974e7bca4fbea684546fa5d659627bee826c7b Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 11 May 2024 16:16:12 +0300 Subject: [PATCH] {firefox,chromium,edge}: add Ecosia --- etc/firefox/policies/policies.json | 13 ++++++++++++- .../policies/managed/aminda-extensions.json | 4 +++- .../policies/managed/brave-shields-disabled.json | 4 +++- etc/opt/chromium/policies/recommended/README.md | 5 +++++ etc/opt/chromium/policies/recommended/ecosia.json | 8 ++++++++ etc/opt/edge/policies/recommended/.gitignore | 1 + etc/opt/edge/policies/recommended/ecosia.json | 1 + 7 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 etc/opt/chromium/policies/recommended/ecosia.json create mode 120000 etc/opt/edge/policies/recommended/ecosia.json diff --git a/etc/firefox/policies/policies.json b/etc/firefox/policies/policies.json index 98b75040..37189481 100644 --- a/etc/firefox/policies/policies.json +++ b/etc/firefox/policies/policies.json @@ -15,7 +15,9 @@ "bittimittari.fi", "pp-attester-turnstile.research.cloudflare.com", "keyoxide.org", - "one.one.one.one" + "one.one.one.one", + "www.ecosia.org", + "ac.ecosia.org" ], "learnInIncognito": true, "learnLocally": true, @@ -175,6 +177,15 @@ "SuggestURLTemplate": "https://start.duckduckgo.com/ac/?q={searchTerms}&type=list", "URLTemplate": "https://start.duckduckgo.com/?q={searchTerms}" }, + { + "Alias": "e", + "Description": "Ecosia Search Engine", + "Method": "GET", + "Name": "Ecosia", + "PostData": "q={searchTerms}", + "SuggestURLTemplate": "https://ac.ecosia.org/autocomplete?q={searchTerms}", + "URLTemplate": "https://www.ecosia.org/search?q={searchTerms}" + }, { "Alias": "b", "Description": "Brave Search", diff --git a/etc/opt/chromium/policies/managed/aminda-extensions.json b/etc/opt/chromium/policies/managed/aminda-extensions.json index 55d426bb..7d173cc9 100644 --- a/etc/opt/chromium/policies/managed/aminda-extensions.json +++ b/etc/opt/chromium/policies/managed/aminda-extensions.json @@ -14,7 +14,9 @@ "bittimittari.fi", "pp-attester-turnstile.research.cloudflare.com", "keyoxide.org", - "one.one.one.one" + "one.one.one.one", + "www.ecosia.org", + "ac.ecosia.org" ], "learnInIncognito": true, "learnLocally": true, diff --git a/etc/opt/chromium/policies/managed/brave-shields-disabled.json b/etc/opt/chromium/policies/managed/brave-shields-disabled.json index 279bf4e6..abfbbcef 100644 --- a/etc/opt/chromium/policies/managed/brave-shields-disabled.json +++ b/etc/opt/chromium/policies/managed/brave-shields-disabled.json @@ -12,6 +12,8 @@ "https://bittimittari.fi", "https://pp-attester-turnstile.research.cloudflare.com", "https://keyoxide.org", - "https://one.one.one.one" + "https://one.one.one.one", + "https://www.ecosia.org", + "https://ac.ecosia.org" ] } diff --git a/etc/opt/chromium/policies/recommended/README.md b/etc/opt/chromium/policies/recommended/README.md index 54871f69..d41d80dc 100644 --- a/etc/opt/chromium/policies/recommended/README.md +++ b/etc/opt/chromium/policies/recommended/README.md @@ -12,6 +12,7 @@ - [`brave-search.json`](#brave-searchjson) - [`disable-default-browser-check.json`](#disable-default-browser-checkjson) - [`duckduckgo.json`](#duckduckgojson) +- [`ecosia.json`](#ecosiajson) - [`enable-home.json`](#enable-homejson) - [`README.md`](#readmemd) @@ -39,6 +40,10 @@ suggested policy, allows the user to set as default in browser settings. Sets and displays recommendation on the use of start.duckduckgo.com as a search engine by default. +## `ecosia.json` + +Sets and displays recommendation on the use of Ecosia as a search engine by default. + ## `enable-home.json` Enables home button by default. diff --git a/etc/opt/chromium/policies/recommended/ecosia.json b/etc/opt/chromium/policies/recommended/ecosia.json new file mode 100644 index 00000000..3b507247 --- /dev/null +++ b/etc/opt/chromium/policies/recommended/ecosia.json @@ -0,0 +1,8 @@ +{ + "DefaultSearchProviderEnabled": true, + "DefaultSearchProviderKeyword": "e", + "DefaultSearchProviderName": "Ecosia", + "DefaultSearchProviderNewTabURL": "", + "DefaultSearchProviderSearchURL": "https://www.ecosia.org/search?q={searchTerms}", + "DefaultSearchProviderSuggestURL": "https://ac.ecosia.org/autocomplete?q={searchTerms}" +} diff --git a/etc/opt/edge/policies/recommended/.gitignore b/etc/opt/edge/policies/recommended/.gitignore index 9d48ea38..0c62ae41 100644 --- a/etc/opt/edge/policies/recommended/.gitignore +++ b/etc/opt/edge/policies/recommended/.gitignore @@ -1,4 +1,5 @@ brave-search.json disable-default-browser-check.json duckduckgo.json +ecosia.json enable-home.json diff --git a/etc/opt/edge/policies/recommended/ecosia.json b/etc/opt/edge/policies/recommended/ecosia.json new file mode 120000 index 00000000..c93b4a68 --- /dev/null +++ b/etc/opt/edge/policies/recommended/ecosia.json @@ -0,0 +1 @@ +../../../chromium/policies/recommended/ecosia.json \ No newline at end of file