Skip to content

Commit

Permalink
Update branding
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmod committed Feb 8, 2023
1 parent 17d34a8 commit cdf667d
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 18.14.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-<PLATFORM>` 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.

Expand Down
8 changes: 4 additions & 4 deletions manifests/chrome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.2",
"version": "1.0.3",
"background": {
"scripts": [
"libs/browser-polyfill.js",
Expand All @@ -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",
Expand All @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions manifests/firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"browser_action": {
"default_icon": "icon.svg",
"default_title": "Ghostery Glow"
"default_title": "Ghostery Private Search"
},
"content_scripts": [{
"matches": [
Expand All @@ -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",
Expand All @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions manifests/dawn.json → manifests/ghostery.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.2",
"version": "1.0.3",
"browser_specific_settings": {
"gecko": {
"id": "search@ghostery.com"
Expand All @@ -20,7 +20,7 @@
},
"browser_action": {
"default_icon": "icon.svg",
"default_title": "Ghostery Glow"
"default_title": "Ghostery Private Search"
},
"content_scripts": [{
"matches": [
Expand Down Expand Up @@ -52,7 +52,7 @@
"js": ["content/additional-search-engines.js"]
}],
"manifest_version": 2,
"name": "Ghostery Glow",
"name": "Ghostery Private Search",
"permissions": [
"search",
"storage",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/metrics.js
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit cdf667d

Please sign in to comment.