Skip to content

Commit a39f4cd

Browse files
author
Shane Osbourne
committed
testing
1 parent b34afb6 commit a39f4cd

File tree

2 files changed

+6
-38
lines changed

2 files changed

+6
-38
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
key: docs-output-${{ github.run_id }}
6565
- name: Install Playwright Browsers
6666
run: npx playwright install --with-deps
67+
- run: npm run playwright-e2e
6768
- run: npm run playwright
6869
- uses: actions/upload-artifact@v2
6970
if: always()

inject/apple.js

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,45 +9,12 @@ import { isTrackerOrigin } from '../src/trackers'
99
function initCode () {
1010
// @ts-expect-error https://app.asana.com/0/1201614831475344/1203979574128023/f
1111
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-
4912
// @ts-expect-error https://app.asana.com/0/1201614831475344/1203979574128023/f
50-
const processedConfig = processConfig(config, $USER_UNPROTECTED_DOMAINS$, $USER_PREFERENCES$)
13+
const userUnprotected = $USER_UNPROTECTED_DOMAINS$
14+
// @ts-expect-error https://app.asana.com/0/1201614831475344/1203979574128023/f
15+
const userPreferences = $USER_PREFERENCES$
16+
17+
const processedConfig = processConfig(config, userUnprotected, userPreferences)
5118
if (isGloballyDisabled(processedConfig)) {
5219
return
5320
}

0 commit comments

Comments
 (0)