Does content_scripts matches “chrome-extension://*/*” work?

后端 未结 4 1369
终归单人心
终归单人心 2020-11-28 15:09

I want to run a content script on an iframe with a chrome-extension:// URL. I added a line to my manifest.json that I copied out of the documentation http://code.google.com/

4条回答
  •  Happy的楠姐
    2020-11-28 16:12

    It seems that Chrome authors have silently removed the ability for content scripts to be injected into chrome-extension: pages. Documentation still says that it works and even contains examples with chrome-extension: scheme but actually it doesn't work. So now only http:, https: and ftp: work "from the box" and file: can work if user of your extension has enabled this on Extensions (chrome://extensions/) page.

    Update: now documentation referred above is updated and says nothing about ability to inject content scripts to chrome-extension: pages.

提交回复
热议问题