diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-12-18 15:54:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-18 15:54:05 -0500 |
commit | 51223abfa696c5917828fdb5a6d7b1816d76c5c6 (patch) | |
tree | 1c64ad6b15b0773908669cdce14e6d1f319e428e /dev/data/manifest-variants.json | |
parent | fd91a5b383addb1b420fba0450a89ceb50cdd3e8 (diff) |
Set up initial manifest v3 support (#605)
Diffstat (limited to 'dev/data/manifest-variants.json')
-rw-r--r-- | dev/data/manifest-variants.json | 21 |
1 files changed, 21 insertions, 0 deletions
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 @@ -131,6 +131,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": "<all_urls>"}, + {"action": "set", "path": ["host_permissions"], "value": ["<all_urls>"], "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": ["<all_urls>"]}], "after": "web_accessible_resources_old"}, + {"action": "move", "path": ["web_accessible_resources_old"], "newPath": ["web_accessible_resources", 0, "resources"]} + ] + }, + { "name": "firefox", "fileName": "yomichan-firefox.xpi", "modifications": [ |