From b9a23d8ce23aa6c243856c9ac56be08bc4e3dca6 Mon Sep 17 00:00:00 2001 From: Ray Lothian Date: Mon, 28 Dec 2020 13:40:12 +0100 Subject: [PATCH] fixes #115 --- extension/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/common.js b/extension/common.js index 18e509d..09648f9 100644 --- a/extension/common.js +++ b/extension/common.js @@ -523,7 +523,7 @@ const onCommitted = d => { frameId, code: `{ const script = document.createElement('script'); - script.textContent = \`{ + script.src = 'data:text/javascript;charset=utf-8;base64,' + btoa(\`{ const o = JSON.parse('${JSON.stringify(o)}'); for (const key of Object.keys(o)) { navigator.__defineGetter__(key, () => { @@ -536,7 +536,7 @@ const onCommitted = d => { return o[key]; }); } - }\`; + }\`); document.documentElement.appendChild(script); script.remove(); }`