From a4e1e8cce4c194df25327d1f23cdd638c3adc3f3 Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Tue, 27 Oct 2020 10:43:37 +1100 Subject: [PATCH] Disable request blocking and certificate inspection --- src/drivers/webextension/js/driver.js | 9 +++++++-- src/drivers/webextension/manifest.json | 1 - src/technologies.json | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/drivers/webextension/js/driver.js b/src/drivers/webextension/js/driver.js index f302560d3..9bf887d42 100644 --- a/src/drivers/webextension/js/driver.js +++ b/src/drivers/webextension/js/driver.js @@ -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) { diff --git a/src/drivers/webextension/manifest.json b/src/drivers/webextension/manifest.json index 846710bf2..e6d8c82c1 100644 --- a/src/drivers/webextension/manifest.json +++ b/src/drivers/webextension/manifest.json @@ -65,7 +65,6 @@ "webRequest", "webNavigation", "webRequestBlocking", - "dns", "http://*/*", "https://*/*" ], diff --git a/src/technologies.json b/src/technologies.json index 271f7663d..82139d59a 100644 --- a/src/technologies.json +++ b/src/technologies.json @@ -1249,7 +1249,7 @@ "AngularJS" ], "dom": { - "body > :first-child": { + "[ng-version]": { "attributes": { "ng-version": "^([\\d.]+)\\;version:\\1" }