From c6f9659f7a8aa7b6d5685871e68bc31103d9fe3a Mon Sep 17 00:00:00 2001 From: Tim Speckhals Date: Fri, 4 Jan 2019 21:17:38 +0100 Subject: [PATCH] 8.3.1 (fixes #107) --- background.js | 4 +++- manifest.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/background.js b/background.js index 444b662..9dffb81 100644 --- a/background.js +++ b/background.js @@ -11,7 +11,7 @@ if(platform=="moz") if("value"in details.responseHeaders[i]&&["content-security-policy","x-content-security-policy"].indexOf(details.responseHeaders[i].name.toLowerCase())>-1) { csp=true - let _policies=details.responseHeaders[i].value.split(";"),policies={} + let _policies=details.responseHeaders[i].value.replace(";,",";").split(";"),policies={} for(let j in _policies) { let policy=_policies[j].trim(),name=policy.split(" ")[0] @@ -32,7 +32,9 @@ if(platform=="moz") policies["script-src"].push("'unsafe-eval'") } else + { policies["script-src"]=["*","blob:","data:","'unsafe-inline'","'unsafe-eval'"] + } let value="" for(let name in policies) { diff --git a/manifest.json b/manifest.json index e0c35dd..39a7df0 100644 --- a/manifest.json +++ b/manifest.json @@ -11,7 +11,7 @@ "name": "Universal Bypass", "description": "__MSG_appDesc__", "homepage_url": "https://universal-bypass.org/", - "version": "8.3", + "version": "8.3.1", "author": "Tim \"timmyRS\" Speckhals", "incognito": "split", "options_ui": {