Skip to content

Commit

Permalink
add: discord.com AudioWorkletNode, fixes #92
Browse files Browse the repository at this point in the history
  • Loading branch information
martok committed Oct 12, 2023
1 parent 82bcddd commit df44d64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/builtin-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]/dist/audioworklet-polyfill.js",
"integrity": "sha384-L9mKvqkYay3gVKj2niZxzS+3bnDXuvYMdwYl9fzT3Bjt/86pYf0RjvYBGIYZt/Kn"});

This comment has been minimized.

Copy link
@roytam1

roytam1 Oct 13, 2023

I think a break; is missed here.

case "std-BlobArrayBuffer":
script.push(pf.Blob_arrayBuffer);
break;
Expand Down

0 comments on commit df44d64

Please sign in to comment.