From c87ed513112bd25496f96c1df366a1141a6da868 Mon Sep 17 00:00:00 2001 From: KevinWh0 <45321184+ChaoticLeah@users.noreply.github.com> Date: Wed, 12 Jun 2024 13:35:37 +0200 Subject: made it so you can pick a search engine --- packages/frontend/src/scripts/search-engine-map.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 packages/frontend/src/scripts/search-engine-map.ts (limited to 'packages/frontend/src/scripts') diff --git a/packages/frontend/src/scripts/search-engine-map.ts b/packages/frontend/src/scripts/search-engine-map.ts new file mode 100644 index 0000000000..925d16aafe --- /dev/null +++ b/packages/frontend/src/scripts/search-engine-map.ts @@ -0,0 +1,12 @@ +//store the URL and if its none of these its a custom one +export const searchEngineMap = { + //The first one is the default search engine + 'https://www.google.com/search?q={query}': 'Google', + 'https://duckduckgo.com?q={query}': 'Duckduckgo', + 'https://www.bing.com/search?q={query}': 'Bing', + 'https://search.yahoo.com/search?p={query}': 'Yahoo', + 'https://www.ecosia.org/search?q={query}': 'Ecosia', + 'https://www.qwant.com?q={query}': 'Qwant', + 'https://search.aol.com/aol/search?q={query}': 'AOL', + 'https://yandex.com/search/?text={query}': 'Yandex', +}; -- cgit v1.2.3-freya