Disable request blocking and certificate inspection

main
Elbert Alias 4 years ago
parent 723e3146c3
commit a4e1e8cce4

@ -62,7 +62,7 @@ const Driver = {
chrome.webRequest.onHeadersReceived.addListener(
Driver.onHeadersReceived,
{ urls: ['http://*/*', 'https://*/*'], types: ['main_frame'] },
['responseHeaders', 'blocking']
['responseHeaders' /*, 'blocking' */]
)
chrome.tabs.onRemoved.addListener((id) => (Driver.cache.tabs[id] = null))
@ -265,6 +265,7 @@ const Driver = {
)
})
/*
let certIssuer = ''
if (
@ -289,12 +290,16 @@ const Driver = {
)
}
}
*/
if (
headers['content-type'] &&
/\/x?html/.test(headers['content-type'][0])
) {
await Driver.onDetect(request.url, analyze({ headers, certIssuer }))
await Driver.onDetect(
request.url,
analyze({ headers /*, certIssuer */ })
)
}
}
} catch (error) {

@ -65,7 +65,6 @@
"webRequest",
"webNavigation",
"webRequestBlocking",
"dns",
"http://*/*",
"https://*/*"
],

@ -1249,7 +1249,7 @@
"AngularJS"
],
"dom": {
"body > :first-child": {
"[ng-version]": {
"attributes": {
"ng-version": "^([\\d.]+)\\;version:\\1"
}

Loading…
Cancel
Save