Skip to content Skip to sidebar Skip to footer

Programmatic Method To Let The User Modify The Manifest.json Content Of A Chrome Extension

I am developing a Chrome extension for use with the Canvas LMS. A problem with this is that Canvas subscribers have different URLs which do not have a common top level domain. For

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:

  1. 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.

  2. 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"