summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/main.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/content/main.js b/content/main.js
index 8adcd48..164ebe3 100644
--- a/content/main.js
+++ b/content/main.js
@@ -84,8 +84,6 @@ function block_script(node)
function inject_csp(head)
{
- console.log('injecting CSP');
-
let meta = document.createElement("meta");
meta.setAttribute("http-equiv", "Content-Security-Policy");
meta.setAttribute("content", csp_rule(nonce));
@@ -102,9 +100,8 @@ if (!is_privileged_url(document.URL)) {
const matches = [...document.cookie.matchAll(/hachette-(\w*)=([^;]*)/g)];
let [policy, signature] = matches.reduce(reductor, []);
- console.log("extracted policy", [signature, policy]);
if (!policy || policy.url !== document.URL) {
- console.log("using default policy");
+ console.log("WARNING! Using default policy!!!");
policy = {allow: false, nonce: gen_nonce()};
}