From e82a09118bcfe929995f227bc5862f2f3990f8e8 Mon Sep 17 00:00:00 2001 From: Darius Jahandarie Date: Sat, 11 Mar 2023 21:10:44 +0900 Subject: Update manifest scripts to only support v3, and yomichan->yomitan --- ext/manifest.json | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) (limited to 'ext/manifest.json') diff --git a/ext/manifest.json b/ext/manifest.json index 0b26c91e..8713f4af 100644 --- a/ext/manifest.json +++ b/ext/manifest.json @@ -1,9 +1,9 @@ { - "manifest_version": 2, - "name": "Yomichan", + "manifest_version": 3, + "name": "Yomitan", "version": "22.10.23.0", "description": "Japanese dictionary with Anki integration", - "author": "Alex Yatskov", + "author": "TheMoeWay", "icons": { "16": "images/icon16.png", "19": "images/icon19.png", @@ -13,7 +13,7 @@ "64": "images/icon64.png", "128": "images/icon128.png" }, - "browser_action": { + "action": { "default_icon": { "16": "images/icon16.png", "19": "images/icon19.png", @@ -23,12 +23,11 @@ "64": "images/icon64.png", "128": "images/icon128.png" }, - "default_title": "Yomichan", + "default_title": "Yomitan", "default_popup": "action-popup.html" }, "background": { - "page": "background.html", - "persistent": true + "service_worker": "sw.js" }, "content_scripts": [ { @@ -66,7 +65,7 @@ ] } ], - "minimum_chrome_version": "57.0.0.0", + "minimum_chrome_version": "96.0.0.0", "options_ui": { "page": "settings.html", "open_in_tab": true @@ -74,21 +73,22 @@ "sandbox": { "pages": [ "template-renderer.html" - ], - "content_security_policy": "sandbox allow-scripts; default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'unsafe-inline'" + ] }, "permissions": [ - "", "storage", "clipboardWrite", "unlimitedStorage", "webRequest", - "webRequestBlocking" + "declarativeNetRequest", + "scripting" ], "optional_permissions": [ "clipboardRead", - "nativeMessaging", - "webNavigation" + "nativeMessaging" + ], + "host_permissions": [ + "" ], "commands": { "toggleTextScanning": { @@ -114,8 +114,18 @@ } }, "web_accessible_resources": [ - "popup.html", - "template-renderer.html" + { + "resources": [ + "popup.html", + "template-renderer.html" + ], + "matches": [ + "" + ] + } ], - "content_security_policy": "default-src 'self'; img-src blob: 'self'; style-src 'self' 'unsafe-inline'; media-src *; connect-src *" + "content_security_policy": { + "extension_pages": "default-src 'self'; img-src blob: 'self'; style-src 'self' 'unsafe-inline'; media-src *; connect-src *", + "sandbox": "sandbox allow-scripts; default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'unsafe-inline'" + } } -- cgit v1.2.3