【发布时间】:2012-12-09 22:30:53
【问题描述】:
所以我正在编写自己的 chrome 扩展程序,并且我有以下 content_scripts:
"content_scripts": [{
"matches": ["*://*.youtube.com/*"],
"exclude_globs": ["*user*"],
"css": ["youtube.css"]
}]
如您所见,它在 youtube 上运行。但是它不应该在 youtube.com/user/ 上运行,这就是我有一个 exclude_globs 字段的原因。但是,它不起作用,并且在查看用户频道时仍然运行。有人有什么想法吗?
【问题讨论】:
标签: google-chrome google-chrome-extension youtube