I changed the manifest file to v3 and found a very interesting behavior. When I restart the browser I am not logged in the first time, but then it works automatically. So not perfect, but a bit better than v0.3+. 😃
Full diff of the changes I've made:
--- a/kagi_search_for_firefox-0.2/manifest.json
+++ b/kagi_search_for_firefox-0.2/manifest.json
@@ -1,7 +1,7 @@
{
- "manifest_version": 2,
+ "manifest_version": 3,
"name": "Kagi Search for Firefox",
- "version": "0.2",
+ "version": "0.2.2",
"description": "A simple helper extension for setting Kagi as a default search engine, and using your session token easier.",
"background": {
"page": "src/background_page.html"
@@ -12,23 +12,24 @@
"48": "icons/favicon-48.png",
"180": "icons/icon_180px.png"
},
- "browser_action": {
+ "action": {
"default_icon": "icons/icon_32px.png",
"default_title": "Kagi Search",
"default_popup": "src/popup.html"
},
"permissions": [
- "https://kagi.com/",
+ "declarativeNetRequestWithHostAccess",
"webRequest",
"webRequestBlocking",
"cookies",
"storage"
],
+ "host_permissions": ["https://kagi.com/*"],
"chrome_settings_overrides": {
"search_provider": {
"name": "Kagi",
"search_url": "https://kagi.com/search?q={searchTerms}",
- "favicon_url": "https://kagi.com/favicon.ico",
+ "favicon_url": "icons/icon_32px.png",
"keyword": "@kagi",
"is_default": true,
"suggest_url": "https://kagi.com/api/autosuggest?q={searchTerms}",
@@ -38,7 +39,7 @@
"incognito": "spanning",
"browser_specific_settings": {
"gecko": {
- "id": "search@kagi.com"
+ "id": "search@kagi-c6c861f2-d54d-43ed-9035-cbd908b8cb3a.com"
}
}
}
\ No newline at end of file
Modified v0.2:
Source code: