From 51223abfa696c5917828fdb5a6d7b1816d76c5c6 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 18 Dec 2020 15:54:05 -0500 Subject: Set up initial manifest v3 support (#605) --- dev/data/manifest-variants.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'dev/data') diff --git a/dev/data/manifest-variants.json b/dev/data/manifest-variants.json index 3f65d86f..0532ab9b 100644 --- a/dev/data/manifest-variants.json +++ b/dev/data/manifest-variants.json @@ -130,6 +130,27 @@ } ] }, + { + "name": "chrome-mv3", + "fileName": "yomichan-chrome-mv3.zip", + "modifications": [ + {"action": "set", "path": ["manifest_version"], "value": 3}, + {"action": "move", "path": ["browser_action"], "newPath": ["action"]}, + {"action": "delete", "path": ["background", "page"]}, + {"action": "delete", "path": ["background", "persistent"]}, + {"action": "set", "path": ["background", "service_worker"], "value": "sw.js"}, + {"action": "move", "path": ["content_security_policy"], "newPath": ["content_security_policy_old"]}, + {"action": "set", "path": ["content_security_policy"], "value": {}}, + {"action": "move", "path": ["content_security_policy_old"], "newPath": ["content_security_policy", "extension_pages"]}, + {"action": "move", "path": ["sandbox", "content_security_policy"], "newPath": ["content_security_policy", "sandbox"]}, + {"action": "remove", "path": ["permissions"], "item": ""}, + {"action": "set", "path": ["host_permissions"], "value": [""], "after": "optional_permissions"}, + {"action": "add", "path": ["permissions"], "items": ["scripting"]}, + {"action": "move", "path": ["web_accessible_resources"], "newPath": ["web_accessible_resources_old"]}, + {"action": "set", "path": ["web_accessible_resources"], "value": [{"resources": [], "matches": [""]}], "after": "web_accessible_resources_old"}, + {"action": "move", "path": ["web_accessible_resources_old"], "newPath": ["web_accessible_resources", 0, "resources"]} + ] + }, { "name": "firefox", "fileName": "yomichan-firefox.xpi", -- cgit v1.2.3