From df44d64c1b85597e6a8e84098fcd139dd35dc5fa Mon Sep 17 00:00:00 2001 From: Martok Date: Thu, 12 Oct 2023 09:37:58 +0200 Subject: [PATCH] add: discord.com AudioWorkletNode, fixes #92 --- lib/builtin-rules.js | 2 ++ lib/main.js | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/lib/builtin-rules.js b/lib/builtin-rules.js index bb038d1..82895e4 100644 --- a/lib/builtin-rules.js +++ b/lib/builtin-rules.js @@ -27,6 +27,8 @@ www.deepl.com www.dhl.de/etc.clientlibs/redesign/clientlibs/clientlibs-head.min.c1ad054852ef2c65cdaf76f87f21abb3.js$script $script-content,dhl-optchain ! -- +discord.com + std-AudioWorkletNode ! -- duolingo.com d35aaqx5ub95lt.cloudfront.net/js/app-*.js$script $script-content,duolingo-regexp diff --git a/lib/main.js b/lib/main.js index 5bc24c1..b583185 100644 --- a/lib/main.js +++ b/lib/main.js @@ -37,6 +37,11 @@ function evaluateFix(fix, script, csp, contentReplace) { case "sm-cookie": // re-set request cookie in SeaMonkey break; /* standard technologies */ + case "std-AudioWorkletNode": + csp["script-src"].push("unpkg.com"); + script.push({"src": "https://unpkg.com/audioworklet-polyfill@1.1.2/dist/audioworklet-polyfill.js", + "integrity": "sha384-L9mKvqkYay3gVKj2niZxzS+3bnDXuvYMdwYl9fzT3Bjt/86pYf0RjvYBGIYZt/Kn"}); + case "std-BlobArrayBuffer": script.push(pf.Blob_arrayBuffer); break;