From 6e4dab4ff2c29d9662ee40ee2f88b7bf1403e56b Mon Sep 17 00:00:00 2001 From: Amit Bhavikatti Date: Tue, 19 Jun 2018 16:37:24 +0530 Subject: [PATCH] Add support for interception against page refreshes --- app/content/content.ts | 2 +- app/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/content/content.ts b/app/content/content.ts index 54bdf29..d664d72 100644 --- a/app/content/content.ts +++ b/app/content/content.ts @@ -167,7 +167,7 @@ class Intercept { } })();`; let script = document.createElement("script"); - script.defer = true; + script.defer = false; script.id = "disableInterceptorScript"; script.type = "text/javascript"; script.textContent = selectedInterceptCode; diff --git a/app/manifest.json b/app/manifest.json index c312071..16261d7 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -15,7 +15,7 @@ { "matches": ["http://*/*", "https://*/*"], "js": ["js/content.js"], - "run_at": "document_end" + "run_at": "document_start" } ], "web_accessible_resources": ["lib/nise.min.js"],