From 3a3edf8d009b7949f3232ef262dd2574acc9bec6 Mon Sep 17 00:00:00 2001 From: Jacob Valdemar Date: Sat, 12 Aug 2023 18:12:16 +0200 Subject: [PATCH 1/2] Use Ecosia as Default Search Provider in Chrome --- os2borgerpc/chrome/chrome_install.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/os2borgerpc/chrome/chrome_install.sh b/os2borgerpc/chrome/chrome_install.sh index db59d4c..f2b2d6e 100755 --- a/os2borgerpc/chrome/chrome_install.sh +++ b/os2borgerpc/chrome/chrome_install.sh @@ -34,6 +34,13 @@ # RestoreOnStartup: Controls what happens on startup. Also prevents users from changing the startup URLs when reopening the browser without logging out of the OS first. Possibly not needed with Guest mode, incognito or ephemeral. # RestoreOnStartupURLs: This is, confusingly, what can actually control the homepage, but only if RestoreOnStartup is set to "4". # +# Search: +# DefaultSearchProviderEnabled: Default search is performed when a user enters non-URL text in the address bar. The default search provider can not be changed by a user. +# DefaultSearchProviderIconURL: Specifies the default search provider's favorite icon URL. +# DefaultSearchProviderName: Specifies the default search provider's name. +# DefaultSearchProviderSearchURL: Specifies the URL of the search provider used during a default search. +# DefaultSearchProviderSuggestURL: Specifies the URL of the search provider to provide search suggestions. +# # Various: # BrowserGuestModeEnabled: Allow people to start a guest session, if they want, so history isn't even temporarily recorded. Not crucial. # BrowsingDataLifetime: Continuously remove all browsing data after 1 hour (the minimum possible), @@ -131,6 +138,11 @@ cat > "$POLICY" <<- END } ], "DefaultBrowserSettingEnabled": false, + "DefaultSearchProviderEnabled": true, + "DefaultSearchProviderIconURL": "https://cdn-static.ecosia.org/static/icons/favicon.ico", + "DefaultSearchProviderName": "Ecosia", + "DefaultSearchProviderSearchURL": "https://ecosia.org/search?q={searchTerms}", + "DefaultSearchProviderSuggestURL": "https://ac.ecosia.org/autocomplete?q={searchTerms}&type=list", "DeveloperToolsAvailability": 2, "EnableMediaRouter": false, "ExtensionInstallBlocklist": [ From 2bc8d690edba577abfbcf7c3779de1816599d9fb Mon Sep 17 00:00:00 2001 From: Jacob Valdemar Date: Sat, 12 Aug 2023 19:06:20 +0200 Subject: [PATCH 2/2] Add documentation --- os2borgerpc/chrome/chrome_install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/os2borgerpc/chrome/chrome_install.sh b/os2borgerpc/chrome/chrome_install.sh index f2b2d6e..c76e338 100755 --- a/os2borgerpc/chrome/chrome_install.sh +++ b/os2borgerpc/chrome/chrome_install.sh @@ -6,6 +6,7 @@ # - prevents Google Chrome from asking if it should be default browser and about browser metrics # - prevents the user logging in to the browser # - disables the remember password prompt feature. +# - configures Ecosia as the Default Search Provider # 3. Add a launch option to Chrome that prevents it # from checking for updates and showing it's out of date to whoever