在本地建一个目录,比如路径为d:\BlockSitePlugin
在此目录中写入以下四个文件:
manifest.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| {
"manifest_version":2,
"name":"ChromeRequestBlocking",
"version":"1.2.4",
"author":"shengulong, euhat.com",
"description":"Block url request.",
"background":{"scripts":["background.js"]},
"browser_action":{
"default_popup":"popup.html",
"default_title":"Block url request"
},
"permissions":[
"storage",
"unlimitedStorage",
"webRequest",
"webRequestBlocking",
"<all_urls>"
]
}
</all_urls> |
{
"manifest_version":2,
"name":"ChromeRequestBlocking",
"version":"1.2.4",
"author":"shengulong, euhat.com",
"description":"Block url request.",
"background":{"scripts":["background.js"]},
"browser_action":{
"default_popup":"popup.html",
"default_title":"Block url request"
},
"permissions":[
"storage",
"unlimitedStorage",
"webRequest",
"webRequestBlocking",
"<all_urls>"
]
}
</all_urls>
Read more