Remove more MV3-only entries from MV2 manifest.

This commit is contained in:
hackademix 2024-12-24 18:59:28 +01:00
parent de9e41a0db
commit b45b247615
No known key found for this signature in database
GPG Key ID: 231A83AFDA9C2434
1 changed files with 5 additions and 0 deletions

View File

@ -92,6 +92,8 @@ if (MANIFEST_VER.includes(3)) {
delete json.action;
for (const p of [
"debugger",
"declarativeNetRequest",
"declarativeNetRequestFeedback",
]) {
permissions.delete(p);
}
@ -115,6 +117,9 @@ if (MANIFEST_VER.includes(3)) {
// remove all the MAIN world content script
json.content_scripts = json.content_scripts.filter(cs => cs.world != "MAIN");
// match_origin_as_fallback is MV3 only
json.content_scripts.forEach(cs => delete cs.match_origin_as_fallback);
}
// remove developer-only stuff