Skip to content

Commit

Permalink
Rebranding
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmod committed Jul 6, 2023
1 parent cdf667d commit 5713078
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 130 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ghostery Search Extension
# Ghostery Private Search Extension

Makes glowstery.com a default search engine.
Makes ghosterysearch.com a default search engine.

## Multiple platform support

Expand Down
11 changes: 6 additions & 5 deletions manifests/chrome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.3",
"version": "1.1.0",
"background": {
"scripts": [
"libs/browser-polyfill.js",
Expand All @@ -24,7 +24,8 @@
"webRequestBlocking",
"https://www.ghostery.com/*",
"https://consumerapi.ghostery.com/*",
"https://glowstery.com/*"
"https://glowstery.com/*",
"https://ghosterysearch.com/*"
],
"icons": {
"16": "icon16.png",
Expand All @@ -39,11 +40,11 @@
"chrome_settings_overrides" : {
"search_provider": {
"name": "Ghostery Private Search",
"search_url": "https://glowstery.com/search?q={searchTerms}",
"favicon_url": "https://glowstery.com/favicon.ico",
"search_url": "https://ghosterysearch.com/search?q={searchTerms}",
"favicon_url": "https://ghosterysearch.com/favicon.ico",
"keyword": "@ghostery",
"is_default": true,
"suggest_url": "https://glowstery.com/suggest",
"suggest_url": "https://ghosterysearch.com/suggest",
"suggest_url_get_params": "q={searchTerms}",
"encoding": "UTF-8"
}
Expand Down
17 changes: 6 additions & 11 deletions manifests/firefox.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.2",
"version": "1.1.0",
"browser_specific_settings": {
"gecko": {
"id": "search@ghostery.com"
Expand All @@ -19,12 +19,6 @@
"default_icon": "icon.svg",
"default_title": "Ghostery Private Search"
},
"content_scripts": [{
"matches": [
"https://*.glowstery.com/search*"
],
"js": ["content/additional-search-engines.js"]
}],
"manifest_version": 2,
"name": "Ghostery Private Search for Firefox",
"permissions": [
Expand All @@ -35,7 +29,8 @@
"webRequestBlocking",
"https://www.ghostery.com/*",
"https://consumerapi.ghostery.com/*",
"https://glowstery.com/*"
"https://glowstery.com/*",
"https://ghosterysearch.com/*"
],
"icons": {
"16": "icon16.png",
Expand All @@ -50,11 +45,11 @@
"chrome_settings_overrides" : {
"search_provider": {
"name": "Ghostery Private Search",
"search_url": "https://glowstery.com/search?q={searchTerms}",
"favicon_url": "https://glowstery.com/favicon.ico",
"search_url": "https://ghosterysearch.com/search?q={searchTerms}",
"favicon_url": "https://ghosterysearch.com/favicon.ico",
"keyword": "@ghostery",
"is_default": true,
"suggest_url": "https://glowstery.com/suggest",
"suggest_url": "https://ghosterysearch.com/suggest",
"suggest_url_get_params": "q={searchTerms}"
}
}
Expand Down
27 changes: 4 additions & 23 deletions manifests/ghostery.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.3",
"version": "1.1.0",
"browser_specific_settings": {
"gecko": {
"id": "search@ghostery.com"
Expand All @@ -23,18 +23,6 @@
"default_title": "Ghostery Private Search"
},
"content_scripts": [{
"matches": [
"https://*.ghosterysearch.com/",
"https://*.ghosterysearch.com/?*",
"https://*.glowstery.com/",
"https://*.glowstery.com/?*",
"http://localhost/",
"http://localhost/?*"
],
"js": [
"content/top-sites.js"
]
}, {
"matches": [
"https://*.ghosterysearch.com/*",
"https://*.glowstery.com/*",
Expand All @@ -43,13 +31,6 @@
"js": [
"content/is-ghostery-browser.js"
]
}, {
"matches": [
"https://*.ghosterysearch.com/search*",
"https://*.glowstery.com/search*",
"http://localhost/search*"
],
"js": ["content/additional-search-engines.js"]
}],
"manifest_version": 2,
"name": "Ghostery Private Search",
Expand Down Expand Up @@ -84,11 +65,11 @@
"chrome_settings_overrides" : {
"search_provider": {
"name": "Ghostery Private Search",
"search_url": "https://glowstery.com/search?q={searchTerms}",
"favicon_url": "https://glowstery.com/favicon.ico",
"search_url": "https://ghosterysearch.com/search?q={searchTerms}",
"favicon_url": "https://ghosterysearch.com/favicon.ico",
"keyword": "@ghostery",
"is_default": true,
"suggest_url": "https://glowstery.com/suggest",
"suggest_url": "https://ghosterysearch.com/suggest",
"suggest_url_get_params": "q={searchTerms}"
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/browser-action.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
browser.browserAction.onClicked.addListener(() => {
browser.tabs.create({
url: "https://glowstery.com",
url: "https://ghosterysearch.com",
});
});
6 changes: 3 additions & 3 deletions src/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
let DEBUG = false;
const STAGING_BASE_URL = 'https://staging.glowstery.com';
const PROD_BASE_URL = 'https://glowstery.com';
const STAGING_BASE_URL = 'https://staging.ghosterysearch.com';
const PROD_BASE_URL = 'https://ghosterysearch.com';
const STAGING_AUTH_DOMAIN = '.ghosterystage.com';
const PROD_AUTH_DOMAIN = '.ghostery.com';
let API_BASE_URL = DEBUG ? 'http://localhost:5000' : PROD_BASE_URL;
Expand All @@ -25,7 +25,7 @@ const setupEndpoints = (async function() {
if (!DEBUG) {
API_BASE_URL = STAGING_BASE_URL;
SERP_BASE_URL = STAGING_BASE_URL;
console.log(`USING_STAGING: Redirecting glowstery.com to staging.glowstery.com`)
console.log(`USING_STAGING: Redirecting ghosterysearch.com to staging.ghosterysearch.com`)
browser.webRequest.onBeforeRequest.addListener(async (details) => {
return {
redirectUrl: details.url.replace(PROD_BASE_URL, STAGING_BASE_URL),
Expand Down
47 changes: 0 additions & 47 deletions src/content/additional-search-engines.js

This file was deleted.

38 changes: 0 additions & 38 deletions src/content/top-sites.js

This file was deleted.

1 change: 1 addition & 0 deletions src/metrics.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// limit engines we can send to the specific set we're interested in from search choice screen
const searchEngineMap = {
"Ghostery Private Search": "ghostery",
Brave: "brave",
Bing: "bing",
DuckDuckGo: "ddg",
Ecosia: "ecosia",
Expand Down

0 comments on commit 5713078

Please sign in to comment.