From c0ea1709529b7f89efb6caaa7450eab1c072461b Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Tue, 14 Jun 2022 17:50:18 +0100 Subject: Add startpage.com as option search-engine and make it the default for new users (#251) --- src/config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 6b754e643..43dbb40bf 100644 --- a/src/config.ts +++ b/src/config.ts @@ -76,14 +76,18 @@ export const NAVIGATION_BAR_BEHAVIOURS = { never: 'Never show navigation bar', }; +export const SEARCH_ENGINE_STARTPAGE = 'startPage'; export const SEARCH_ENGINE_GOOGLE = 'google'; export const SEARCH_ENGINE_DDG = 'duckDuckGo'; export const SEARCH_ENGINE_NAMES = { + [SEARCH_ENGINE_STARTPAGE]: 'Startpage', [SEARCH_ENGINE_GOOGLE]: 'Google', [SEARCH_ENGINE_DDG]: 'DuckDuckGo', }; export const SEARCH_ENGINE_URLS = { + [SEARCH_ENGINE_STARTPAGE]: ({ searchTerm }) => + `https://www.startpage.com/sp/search?query=${searchTerm}`, [SEARCH_ENGINE_GOOGLE]: ({ searchTerm }) => `https://www.google.com/search?q=${searchTerm}`, [SEARCH_ENGINE_DDG]: ({ searchTerm }) => @@ -253,7 +257,7 @@ export const DEFAULT_APP_SETTINGS = { sidebarServicesLocation: SIDEBAR_SERVICES_LOCATION_TOPLEFT, iconSize: iconSizeBias, navigationBarBehaviour: 'custom', - searchEngine: SEARCH_ENGINE_DDG, + searchEngine: SEARCH_ENGINE_STARTPAGE, useVerticalStyle: false, hideRecipesButton: false, useGrayscaleServices: false, -- cgit v1.2.3-54-g00ecf