Skip to content

Commit 919c98e

Browse files
author
Shane Osbourne
committed
temp config override
1 parent 3de3b1a commit 919c98e

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

inject/apple.js

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,45 @@ import { isTrackerOrigin } from '../src/trackers'
88

99
function initCode () {
1010
// @ts-expect-error https://app.asana.com/0/1201614831475344/1203979574128023/f
11-
const processedConfig = processConfig($CONTENT_SCOPE$, $USER_UNPROTECTED_DOMAINS$, $USER_PREFERENCES$)
11+
const config = $CONTENT_SCOPE$
12+
config.features.duckPlayer = {
13+
state: 'enabled',
14+
exceptions: [],
15+
settings: {
16+
overlays: {
17+
youtube: {
18+
state: 'disabled'
19+
},
20+
serpProxy: {
21+
state: 'disabled'
22+
}
23+
},
24+
domains: [
25+
{
26+
domain: 'youtube.com',
27+
patchSettings: [
28+
{
29+
op: 'replace',
30+
path: '/overlays/youtube/state',
31+
value: 'enabled'
32+
}
33+
]
34+
},
35+
{
36+
domain: 'duckduckgo.com',
37+
patchSettings: [
38+
{
39+
op: 'replace',
40+
path: '/overlays/serpProxy/state',
41+
value: 'enabled'
42+
}
43+
]
44+
}
45+
]
46+
}
47+
}
48+
49+
const processedConfig = processConfig(config, $USER_UNPROTECTED_DOMAINS$, $USER_PREFERENCES$)
1250
if (isGloballyDisabled(processedConfig)) {
1351
return
1452
}

0 commit comments

Comments
 (0)