【发布时间】:2021-10-08 12:47:52
【问题描述】:
我无法在新标签页上运行我的内容脚本(它没有分配给任何 url)。
我查看了有关该主题的各种帖子,即Does content script have access to newtab page? 和What is the URL of the google chrome new tab page and how to exclude it from manifest.json
这似乎表明这是可能的。
我启用了 chrome://flags/#extensions-on-chrome-urls
我有:
"permissions": [
"http://*/*",
"https://*/*",
"chrome://*/*"
],
(也试过"*://*/_/chrome/newtab*")
仍然没有运气......我错过了什么?
这个答案Can you access chrome:// pages from an extension? 提到“不接受通配符”。这是真的 ?如果是的话如何指定新标签页?
【问题讨论】:
标签: google-chrome google-chrome-extension