TODO: 1. server request url. get response
This commit is contained in:
parent
4aa063ff68
commit
e4923eaf8d
|
@ -0,0 +1,22 @@
|
|||
|
||||
chrome.webRequest.onCompleted.addListener(
|
||||
function (details) {
|
||||
console.log(details);
|
||||
console.log(document);
|
||||
// return { responseHeaders: details.responseHeaders};
|
||||
},
|
||||
{
|
||||
urls: ["<all_urls>"],
|
||||
types: [
|
||||
"main_frame",
|
||||
"sub_frame",
|
||||
"stylesheet",
|
||||
"script",
|
||||
"image",
|
||||
"object",
|
||||
"xmlhttprequest",
|
||||
"other"
|
||||
]
|
||||
},
|
||||
["responseHeaders", "extraHeaders"]
|
||||
);
|
|
@ -0,0 +1 @@
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"background": {
|
||||
"js": [
|
||||
"scripts": [
|
||||
"background/worker.js"
|
||||
]
|
||||
},
|
||||
|
@ -16,7 +16,7 @@
|
|||
"content_scripts": [ {
|
||||
"all_frames": true,
|
||||
"js": [ "content/inject.js" ],
|
||||
"matches": [ "*://*/*" ],
|
||||
"matches": [ "<all_urls>" ],
|
||||
"run_at": "document_start"
|
||||
} ],
|
||||
"description": "block all",
|
||||
|
@ -31,7 +31,7 @@
|
|||
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlurgt0Ykv740tjk1ebeiSX6UVVRRhxVvh+FvRMTe9PKzkAKUDEW2IjNUz1swxZA8ILnMvtyamAfiErTOxUFB8+zCADU/CK2YEhqUJo3tmHCg6EP2XJL220ZXjmIeft1AqJV1BmGRLhm8VnH8dJ2EThfcflx4JEdlh0/aLJr6UVjF2hPVX8JLAMTVjEfiC82KDNGgXDADqBm3E/6n+Dx+3KhgIYTXKIMk+qRVaOhjAJLh8a9OrDBwpylP5RDifTAyVVa9UOyoLNqynzC9oLabWUr1ovWAOiivhYknFCXnl5q971iNSFpmjc+ZW+aK+TRjMnJF84IeA170corVG3KgnwIDAQAB",
|
||||
"manifest_version": 2,
|
||||
"name": "MyBlock",
|
||||
"permissions": [ "storage", "*://*/*", "activeTab", "webRequest", "webRequestBlocking","webNavigation", "tabs"],
|
||||
"permissions": [ "storage","tabs" , "activeTab", "webRequest", "webRequestBlocking", "<all_urls>", "webNavigation"],
|
||||
"short_name": "myblock",
|
||||
"version": "0.1.0"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user