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

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

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

Loading…
Cancel
Save