javascript - 如何仅在我的扩展生成页面上运行内容脚本?
问题描述
如何在托管我的扩展程序的特定页面上运行内容脚本
我试过这个
"content_scripts": [{
"matches": ["chrome-extension://*/*", "https://*/*"],
"js": ["script.js"],
"all_frames": true
}],
但它会引发错误
Invalid value for 'content_scripts[0].matches[0]': Invalid scheme.
解决方案
推荐阅读
- reactjs - AWS (S3 + CloudFront) 上的静态 React 网站 - 找不到页面时返回 HTTP 404
- python - 如何使用 python argparse 创建互斥选项组?
- r - 如何从日期对象获取月份名称作为输出?
- webserver - 如何创建一个简单的 Python 网络服务器
- tkinter - 如何在 Python 中以正确的方式分配变量变量?
- reactjs - 如何检查打字稿中的类型。不工作的例子
- python - Python 必须用什么数据结构来关联两个数组?
- python - quickbook API python getToken
- django - 如何返回 HTTP_REFERRER 而不是将模板传递给 TemplateResponse?
- javascript - 为获取 api 登录定制的 React 钩子