diff --git a/src/content/search-bar.js b/src/content/search-bar.js deleted file mode 100644 index e132582..0000000 --- a/src/content/search-bar.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; - -(async function () { - function observerSearchInput() { - const form$ = document.querySelector('form'); - form$.addEventListener('submit', () => { - const input$ = document.querySelector('#search-input'); - browser.runtime.sendMessage({ - action: 'search', - args: [{ - query: input$.value, - }], - }); - }); - } - - if (document.readyState === 'complete' || document.readyState === 'interactive') { - observerSearchInput(); - } else { - document.addEventListener('DOMContentLoaded', function onLoad() { - document.removeEventListener('DOMContentLoaded', onLoad); - observerSearchInput(); - }); - } -})() diff --git a/src/experiment_apis/ghostery_parent.js b/src/experiment_apis/ghostery_parent.js index 38ff6b6..9a74c42 100644 --- a/src/experiment_apis/ghostery_parent.js +++ b/src/experiment_apis/ghostery_parent.js @@ -30,11 +30,6 @@ global.ghostery = class extends ExtensionCommon.ExtensionAPI { Services.search.defaultEngine = searchEngine; }, - query(windowId, query) { - const window = getWindow(windowId); - window.gURLBar.value = query || ''; - window.gURLBar.focus(); - }, isDefaultBrowser() { const shell = Components.classes["@mozilla.org/browser/shell-service;1"] .getService(Components.interfaces.nsIShellService) diff --git a/src/experiment_apis/ghostery_schema.json b/src/experiment_apis/ghostery_schema.json index 3c289b5..1326423 100644 --- a/src/experiment_apis/ghostery_schema.json +++ b/src/experiment_apis/ghostery_schema.json @@ -29,20 +29,6 @@ "description": "Constant value" } }, - { - "name": "query", - "type": "function", - "description": "Focus the UrlBar", - "parameters": [{ - "type": "number", - "name": "windowId", - "optional": true - }, { - "type": "string", - "name": "query", - "optional": true - }] - }, { "name": "isDefaultBrowser", "type": "function", diff --git a/src/favicon.ico b/src/favicon.ico new file mode 100644 index 0000000..0d56a60 Binary files /dev/null and b/src/favicon.ico differ diff --git a/src/manifest.json b/src/manifest.json index ab18d63..d36f725 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -26,8 +26,7 @@ "http://localhost/?*" ], "js": [ - "content/top-sites.js", - "content/search-bar.js" + "content/top-sites.js" ] }, { "matches": [ @@ -67,18 +66,17 @@ "http://localhost/*" ], "icons": { - "48": "icon.svg", - "96": "icon.svg" + "16": "favicon.ico" }, "web_accessible_resources": [ - "icon.svg" + "favicon.ico" ], "chrome_settings_overrides" : { "search_provider": { "name": "Ghostery Glow", "search_url": "https://glowstery.com/search?q={searchTerms}", "keyword": "@ghostery", - "favicon_url": "https://glowstery.com/img/favicon-32x32.png", + "favicon_url": "https://glowstery.com/favicon.ico", "is_default": true, "suggest_url": "https://glowstery.com/suggest", "suggest_url_get_params": "q={searchTerms}"