From a66e48da921ee0f3b59c4611b456c798961e1209 Mon Sep 17 00:00:00 2001 From: Alice Rose Murphy Date: Sat, 11 Jun 2022 23:21:48 +0200 Subject: [PATCH] Add support for Ecosia --- extension/background.ts | 2 ++ extension/content.ts | 1 + extension/manifest.json | 1 + extension/options.html | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/extension/background.ts b/extension/background.ts index 743efe4..0c9bacc 100644 --- a/extension/background.ts +++ b/extension/background.ts @@ -40,6 +40,7 @@ const badIdentifiersArray = [ 'docs.google.com', 'drive.google.com', 'duckduckgo.com', + 'ecosia.org', 'en.wikipedia.org', 'en.wikiquote.org', 'etsy.com=SN', @@ -460,6 +461,7 @@ const socialNetworkPatterns = [ "*://*.rationalwiki.org/*", "*://*.google.com/*", "*://*.bing.com/*", + "*://*.ecosia.org/*", "*://duckduckgo.com/*", ]; diff --git a/extension/content.ts b/extension/content.ts index 0f86d82..6c280b1 100644 --- a/extension/content.ts +++ b/extension/content.ts @@ -93,6 +93,7 @@ function init() { 'rationalwiki.org', 'duckduckgo.com', 'bing.com', + 'ecosia.org', ].includes(hostname) || domainIs(hostname, 'tumblr.com') || domainIs(hostname, 'wikipedia.org') || diff --git a/extension/manifest.json b/extension/manifest.json index a0d0ced..75dd08d 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -26,6 +26,7 @@ "*://duckduckgo.com/*", "*://*.bing.com/*", + "*://*.ecosia.org/*", "*://*.google.ar/*", "*://*.google.at/*", diff --git a/extension/options.html b/extension/options.html index a09e759..dd645ea 100644 --- a/extension/options.html +++ b/extension/options.html @@ -64,7 +64,7 @@ (topics) + DuckDuckGo, Ecosia (search results)