From cdf667deb4b0de955382849ebdf69d83a760e772 Mon Sep 17 00:00:00 2001 From: Krzysztof Modras Date: Wed, 8 Feb 2023 18:52:55 +0100 Subject: [PATCH] Update branding --- .tool-versions | 1 + README.md | 4 ++-- manifests/chrome.json | 8 ++++---- manifests/firefox.json | 6 +++--- manifests/{dawn.json => ghostery.json} | 8 ++++---- package.json | 2 +- src/config.js | 2 +- src/metrics.js | 2 +- 8 files changed, 17 insertions(+), 16 deletions(-) create mode 100644 .tool-versions rename manifests/{dawn.json => ghostery.json} (94%) diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..ab43e6a --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 18.14.0 diff --git a/README.md b/README.md index bb82f1b..80e86a2 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,9 @@ Makes glowstery.com a default search engine. WebExtensions are supported by most modern browsers. For each browser we ship exactly same code base but with different manifest. Manifests are located in `/manifests` folder. To prepare the build for different platform copy the right manifest into `/src` folder or user `npm run switch-` scripts. Supported platforms are: -* Ghostery Dawn `npm run switch-dawn` +* Ghostery Private Browser `npm run switch-ghostery` * Firefox `npm run switch-firefox` -* Chromium - Coming soon +* Chromium - `npm run switch-chrome` *Important* - remember to copy manifest file on every change you make to it in `/manifests` folder. `/src/manifest.json` is not updating automatically. diff --git a/manifests/chrome.json b/manifests/chrome.json index 3ed8551..5f9d51c 100644 --- a/manifests/chrome.json +++ b/manifests/chrome.json @@ -1,5 +1,5 @@ { - "version": "1.0.2", + "version": "1.0.3", "background": { "scripts": [ "libs/browser-polyfill.js", @@ -12,10 +12,10 @@ }, "browser_action": { "default_icon": "icon.svg", - "default_title": "Ghostery Glow" + "default_title": "Ghostery Private Search" }, "manifest_version": 2, - "name": "Ghostery Glow for Chrome", + "name": "Ghostery Private Search for Chrome", "permissions": [ "search", "storage", @@ -38,7 +38,7 @@ ], "chrome_settings_overrides" : { "search_provider": { - "name": "Ghostery Glow", + "name": "Ghostery Private Search", "search_url": "https://glowstery.com/search?q={searchTerms}", "favicon_url": "https://glowstery.com/favicon.ico", "keyword": "@ghostery", diff --git a/manifests/firefox.json b/manifests/firefox.json index 1ff9d25..cb1d6aa 100644 --- a/manifests/firefox.json +++ b/manifests/firefox.json @@ -17,7 +17,7 @@ }, "browser_action": { "default_icon": "icon.svg", - "default_title": "Ghostery Glow" + "default_title": "Ghostery Private Search" }, "content_scripts": [{ "matches": [ @@ -26,7 +26,7 @@ "js": ["content/additional-search-engines.js"] }], "manifest_version": 2, - "name": "Ghostery Glow for Firefox", + "name": "Ghostery Private Search for Firefox", "permissions": [ "search", "storage", @@ -49,7 +49,7 @@ ], "chrome_settings_overrides" : { "search_provider": { - "name": "Ghostery Glow", + "name": "Ghostery Private Search", "search_url": "https://glowstery.com/search?q={searchTerms}", "favicon_url": "https://glowstery.com/favicon.ico", "keyword": "@ghostery", diff --git a/manifests/dawn.json b/manifests/ghostery.json similarity index 94% rename from manifests/dawn.json rename to manifests/ghostery.json index 9cfcb4b..7254972 100644 --- a/manifests/dawn.json +++ b/manifests/ghostery.json @@ -1,5 +1,5 @@ { - "version": "1.0.2", + "version": "1.0.3", "browser_specific_settings": { "gecko": { "id": "search@ghostery.com" @@ -20,7 +20,7 @@ }, "browser_action": { "default_icon": "icon.svg", - "default_title": "Ghostery Glow" + "default_title": "Ghostery Private Search" }, "content_scripts": [{ "matches": [ @@ -52,7 +52,7 @@ "js": ["content/additional-search-engines.js"] }], "manifest_version": 2, - "name": "Ghostery Glow", + "name": "Ghostery Private Search", "permissions": [ "search", "storage", @@ -83,7 +83,7 @@ ], "chrome_settings_overrides" : { "search_provider": { - "name": "Ghostery Glow", + "name": "Ghostery Private Search", "search_url": "https://glowstery.com/search?q={searchTerms}", "favicon_url": "https://glowstery.com/favicon.ico", "keyword": "@ghostery", diff --git a/package.json b/package.json index 3a0aa39..6712e4e 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "switch-firefox": "cp manifests/firefox.json src/manifest.json", - "switch-dawn": "cp manifests/dawn.json src/manifest.json", + "switch-ghostery": "cp manifests/ghostery.json src/manifest.json", "switch-chrome": "cp manifests/chrome.json src/manifest.json", "build": "web-ext build", "sign": "web-ext sign --channel unlisted --timeout 360000", diff --git a/src/config.js b/src/config.js index 887704b..08975a8 100644 --- a/src/config.js +++ b/src/config.js @@ -12,7 +12,7 @@ let USE_STAGING = false; const ON_START = []; const manifest = chrome.runtime.getManifest(); -const IS_CHROME = manifest.name === "Ghostery Glow for Chrome"; +const IS_CHROME = manifest.name === "Ghostery Private Search for Chrome"; const GBE_ADDON_ID = IS_CHROME ? 'mlomiejdfkolichcflejclcbmpeaniij' : 'firefox@ghostery.com'; const setupEndpoints = (async function() { diff --git a/src/metrics.js b/src/metrics.js index 17e504e..cfcd0f4 100644 --- a/src/metrics.js +++ b/src/metrics.js @@ -1,6 +1,6 @@ // limit engines we can send to the specific set we're interested in from search choice screen const searchEngineMap = { - "Ghostery Glow": "ghostery", + "Ghostery Private Search": "ghostery", Bing: "bing", DuckDuckGo: "ddg", Ecosia: "ecosia",