I have a chrome extension that very simply injects CSS before a page loads. (I know this could be done by javascript once the page has loaded, but this causes the page to flash as it changes/renders the new CSS.)
The CSS is injected as a content script using code like:
"css": ["mystyles.css"],
"run_at": "document_start",
I would like to be able to remove all the CSS if the page action is clicked, but this doesn’t seem to be possible. Could I make a page action extension that disables the extension that injects the CSS?
Thanks for your help!
Actually it is possible to disable another extension, but only in experimental API for now. See chrome.experimental.management module.