Programmatic Method To Let The User Modify The Manifest.json Content Of A Chrome Extension
Solution 1:
An installed extension from the web store cannot be modified, its contents is protected and verified by Chrome. Only unpacked local extensions in developer-mode can be modified.
Solutions:
Add
"include_globs": ["*://canvas.*/*"]
(info) in addition to your"matches"
.
This won't help you reduce the review time in the web store, most likely.Remove
"content_scripts"
section, as well as hosts from"permissions"
and switch to programmatic injection in a chrome.tabs.onUpdated (info) listener.This requires you to switch to optional permissions (you'll show a button/command in your UI to grant the URL permission) which will help you with the web store review times.
There's even a more advanced declarativeContent API (with RequestContentScript action which is actually supported in stable Chrome).
Post a Comment for "Programmatic Method To Let The User Modify The Manifest.json Content Of A Chrome Extension"