Skip to content

Commit 3b35ccc

Browse files
author
Shane Osbourne
committed
macos duckplayer
1 parent 02ddf04 commit 3b35ccc

File tree

10 files changed

+421
-39
lines changed

10 files changed

+421
-39
lines changed

inject/apple.js

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,35 @@ import { processConfig, isGloballyDisabled } from './../src/utils'
77

88
function initCode () {
99
// @ts-expect-error https://app.asana.com/0/1201614831475344/1203979574128023/f
10-
const processedConfig = processConfig($CONTENT_SCOPE$, $USER_UNPROTECTED_DOMAINS$, $USER_PREFERENCES$)
10+
const json = $CONTENT_SCOPE$
11+
12+
json.features.duckPlayer = {
13+
state: 'enabled',
14+
exceptions: [],
15+
settings: {
16+
overlays: {
17+
youtube: {
18+
state: 'disabled'
19+
}
20+
},
21+
domains: [
22+
{
23+
domain: 'www.youtube.com',
24+
patchSettings: [
25+
{
26+
op: 'replace',
27+
path: '/overlays/youtube/state',
28+
value: 'enabled'
29+
}
30+
]
31+
}
32+
]
33+
}
34+
}
35+
36+
// @ts-expect-error https://app.asana.com/0/1201614831475344/1203979574128023/f
37+
const processedConfig = processConfig(json, $USER_UNPROTECTED_DOMAINS$, $USER_PREFERENCES$)
38+
console.log(processedConfig)
1139
if (isGloballyDisabled(processedConfig)) {
1240
return
1341
}

0 commit comments

Comments
 (0)