【发布时间】:2017-12-27 05:11:47
【问题描述】:
我想匹配我在 google.com 和 twitch.tv. 上运行的 chrome 扩展,我尝试了这两种方法:
第一种方式:
"content_scripts": [ {
"exclude_globs": [ ],
"include_globs": [ "*" ],
"js":["jquery.user.js","h.js", "main.js"],
"matches": ["*//google.com", "*//twitch.tv/"],
"run_at": "document_end",
"permissions":["tabs","<all_urls>"]
} ],
第二种方式:
"content_scripts": [ {
"exclude_globs": [ ],
"include_globs": [ "*" ],
"js":["jquery.user.js","h.js", "main.js"],
"matches": ["*//google.com, *//twitch.tv/"],
"run_at": "document_end",
"permissions":["tabs","<all_urls>"]
} ],
我用引号分隔两者的方式崩溃并且不起作用,我没有将URL's分隔的方式只运行第一个URL(google)
那么有没有办法让它在两个URLs 上运行?
谢谢!
【问题讨论】:
标签: json google-chrome google-chrome-extension