Hua*_*ang 5 webrequest google-chrome-extension
我尝试测试WebRequestAPI的示例,但抛出错误:
"onBeforeRequest"只能用于扩展进程.manifest.json的:
{
"name": "example",
"version": "1.0",
"permissions": [
"experimental",
"http://*/*", "https://*/*"
],
"content_scripts": [ {
"js": [ "foo.js" ],
"matches": [ "http://*/*", "https://*/*" ],
"run_at": "document_start"
} ]
}
Run Code Online (Sandbox Code Playgroud)
foo.js 正是这个例子1
| 归档时间: |
|
| 查看次数: |
5566 次 |
| 最近记录: |