Question

I need to be able to inject a content script into an iframe that is within an action's popup.html of another extension.

Previously, before an update to this extension in question, the extension injected the iframe into the active tab. I was able to configure my manifest like this:

"content_scripts": [{
    "matches": ["https://*.domain.com/*"],
    "js": ["content.js"],
    "all_frames": true
}],

It worked fine, the content script was injected into the iframe. Now this extension has the iframe in the action's popup.html and I can't get this to work.

Is there any way to accomplish this?

Was it helpful?

Solution

In general, you can't do this because chrome-extension: is not/no-longer a valid scheme.

However, if you can target the popup.html without using wildcards, you might be able to get to work by setting a "bad flag" in the Chrome://flags page.

Obviously, this will only work for your own personal browser.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top