Skip to content

Commit 35e37b9

Browse files
committed
fix(safari): upgrade macOS extension to manifest v3
- Add rule-builder.js to background scripts (fixes background not loading) - Add missing permissions: declarativeNetRequestWithHostAccess, activeTab - Add host_permissions for <all_urls> - Add content scripts matching iOS configuration - Update manifest_version from 2 to 3 - Bump version to 2.2.4
1 parent 941d668 commit 35e37b9

1 file changed

Lines changed: 23 additions & 5 deletions

File tree

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,35 @@
11
{
2-
"manifest_version": 2,
2+
"manifest_version": 3,
33
"default_locale": "en",
44

55
"name": "__MSG_extension_name__",
66
"description": "__MSG_extension_description__",
7-
"version": "2.2.3",
7+
"version": "2.2.4",
88

99
"icons": {
1010
"512": "images/Icon.png"
1111
},
1212

1313
"background": {
1414
"scripts": [
15+
"rule-builder.js",
1516
"background.js"
1617
],
1718
"persistent": false
1819
},
1920

20-
"browser_action": {
21+
"content_scripts": [{
22+
"js": [ "content-script.js" ],
23+
"matches": [ "<all_urls>" ],
24+
"exclude_matches" : ["*://*.kagi.com/*"],
25+
"run_at": "document_start"
26+
}, {
27+
"js": ["kagi-content-script.js"],
28+
"matches": ["*://*.kagi.com/*"],
29+
"run_at": "document_start"
30+
}],
31+
32+
"action": {
2133
"default_popup": "popup.html",
2234
"default_icon": {
2335
"128": "images/ToolbarItemIcon.pdf"
@@ -27,8 +39,14 @@
2739
"permissions": [
2840
"nativeMessaging",
2941
"webNavigation",
30-
"storage"
42+
"declarativeNetRequestWithHostAccess",
43+
"storage",
44+
"activeTab"
45+
],
46+
47+
"host_permissions": [
48+
"<all_urls>"
3149
],
32-
50+
3351
"optional_permissions": []
3452
}

0 commit comments

Comments
 (0)