diff options
-rw-r--r-- | content/content.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/content/content.js b/content/content.js index 120b16d..7cbb523 100644 --- a/content/content.js +++ b/content/content.js @@ -136,7 +136,9 @@ async function main() { const html_ns = "http://www.w3.org/1999/xhtml"; const script = document.createElementNS(html_ns, "script"); - script.innerText = script_contents; + const blobby_opts = {type: "text/javascript;charset=UTF-8"}; + const blobby = new Blob([script_contents], blobby_opts); + script.src = URL.createObjectURL(blobby); script.setAttribute("nonce", policy.nonce); document.documentElement.append(script); script.remove(); |