From ecc994a8bbd52a426434a549f8e3e68eba6e786e Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Tue, 23 Nov 2021 16:16:13 -0500 Subject: ScriptManager updates (#2022) * Fix spacing * Add more parameters to injectStylesheet * Add more parameters to injectScript * Update ScriptManager to support content script registration * Add webNavigation as an optional permission --- dev/data/manifest-variants.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dev/data') diff --git a/dev/data/manifest-variants.json b/dev/data/manifest-variants.json index 86dbaecf..004cec01 100644 --- a/dev/data/manifest-variants.json +++ b/dev/data/manifest-variants.json @@ -98,7 +98,8 @@ ], "optional_permissions": [ "clipboardRead", - "nativeMessaging" + "nativeMessaging", + "webNavigation" ], "commands": { "toggleTextScanning": { @@ -172,6 +173,7 @@ "fileName": "yomichan-chrome-mv3.zip", "modifications": [ {"action": "set", "path": ["manifest_version"], "value": 3}, + {"action": "set", "path": ["minimum_chrome_version"], "value": "96.0.0.0"}, {"action": "move", "path": ["browser_action"], "newPath": ["action"]}, {"action": "delete", "path": ["background", "page"]}, {"action": "delete", "path": ["background", "persistent"]}, @@ -185,6 +187,7 @@ {"action": "remove", "path": ["permissions"], "item": "webRequestBlocking"}, {"action": "add", "path": ["permissions"], "items": ["declarativeNetRequest", "scripting"]}, {"action": "set", "path": ["host_permissions"], "value": [""], "after": "optional_permissions"}, + {"action": "remove", "path": ["optional_permissions"], "item": "webNavigation"}, {"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"]} -- cgit v1.2.3