Google chrome extension Chrome扩展也在Google Keep中运行

Google chrome extension Chrome扩展也在Google Keep中运行,google-chrome-extension,Google Chrome Extension,我需要在每个网页上运行我的Chrome扩展,因此在manifest.json中,我有以下内容: "content_scripts": [ { "matches": ["http://*/*", "https://*/*"], "run_at": "document_start", "js": ["co

我需要在每个网页上运行我的Chrome扩展,因此在
manifest.json
中,我有以下内容:

  "content_scripts": [
    {
      "matches": ["http://*/*", "https://*/*"],
      "run_at": "document_start",
      "js": ["contentScript.js"]
    }
  ],
这是工作,但我刚刚下载了谷歌保持桌面应用程序,发现我的扩展也在那里运行

有没有办法将扩展仅限于实际网页?文档中没有任何相关内容:

我可以使用匹配模式,但我不确定应该将哪些域列入黑名单,以防止扩展在所有谷歌应用程序中运行。这有文件记录吗


如果我在内容脚本中运行
警报(window.location.href)
,我可以看到域是
https://keep.google.com/u/0/?usp=installed_webapp
这样我就可以把
google.com列入黑名单
但是它不会在Chrome的那个域名上运行。

正如你的调查显示的,这是一个真实的网页,这就是内容脚本在那里运行的原因。您可以在manifest.json中查看。