Skip to content

Commit 1d5f27d

Browse files
mgurgelgithub-actions[bot]
authored andcommitted
Release build 8.19.0 [ci release]
1 parent 1ff1e5b commit 1d5f27d

File tree

9 files changed

+18
-6
lines changed

9 files changed

+18
-6
lines changed

CHANGELOG.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
- onboarding: refresh assets (#1659)
2-
- Onboarding: Fix welcome message appearing off screen (#1650)
3-
- ntp: remove legacy menu (#1638)
1+
- Add query param color=white to (#1662)

Sources/ContentScopeScripts/dist/pages/duckplayer/dist/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -1820,6 +1820,7 @@
18201820
}
18211821
url.searchParams.set("rel", "0");
18221822
url.searchParams.set("modestbranding", "1");
1823+
url.searchParams.set("color", "white");
18231824
if (this.timestamp && this.timestamp.seconds > 0) {
18241825
url.searchParams.set("start", String(this.timestamp.seconds));
18251826
}

Sources/ContentScopeScripts/dist/pages/duckplayer/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -2955,6 +2955,7 @@
29552955
}
29562956
url.searchParams.set("rel", "0");
29572957
url.searchParams.set("modestbranding", "1");
2958+
url.searchParams.set("color", "white");
29582959
if (this.timestamp && this.timestamp.seconds > 0) {
29592960
url.searchParams.set("start", String(this.timestamp.seconds));
29602961
}

build/android/pages/duckplayer/dist/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -1820,6 +1820,7 @@
18201820
}
18211821
url.searchParams.set("rel", "0");
18221822
url.searchParams.set("modestbranding", "1");
1823+
url.searchParams.set("color", "white");
18231824
if (this.timestamp && this.timestamp.seconds > 0) {
18241825
url.searchParams.set("start", String(this.timestamp.seconds));
18251826
}

build/integration/pages/duckplayer/dist/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -1820,6 +1820,7 @@
18201820
}
18211821
url.searchParams.set("rel", "0");
18221822
url.searchParams.set("modestbranding", "1");
1823+
url.searchParams.set("color", "white");
18231824
if (this.timestamp && this.timestamp.seconds > 0) {
18241825
url.searchParams.set("start", String(this.timestamp.seconds));
18251826
}

build/windows/pages/duckplayer/dist/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -1820,6 +1820,7 @@
18201820
}
18211821
url.searchParams.set("rel", "0");
18221822
url.searchParams.set("modestbranding", "1");
1823+
url.searchParams.set("color", "white");
18231824
if (this.timestamp && this.timestamp.seconds > 0) {
18241825
url.searchParams.set("start", String(this.timestamp.seconds));
18251826
}

special-pages/pages/duckplayer/app/embed-settings.js

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export class EmbedSettings {
7171

7272
url.searchParams.set('rel', '0'); // shows related videos from the same channel as the video
7373
url.searchParams.set('modestbranding', '1'); // disables showing the YouTube logo in the video control bar
74+
url.searchParams.set('color', 'white'); // Forces legacy YouTube player UI
7475

7576
if (this.timestamp && this.timestamp.seconds > 0) {
7677
url.searchParams.set('start', String(this.timestamp.seconds)); // if timestamp supplied, start video at specific point

special-pages/pages/duckplayer/integration-tests/duck-player.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import { perPlatform } from 'injected/integration-test/type-helpers.mjs';
55

66
const MOCK_VIDEO_ID = 'VIDEO_ID';
77
const MOCK_VIDEO_TITLE = 'Embedded Video - YouTube';
8-
const youtubeEmbed = (id) => 'https://www.youtube-nocookie.com/embed/' + id + '?iv_load_policy=1&autoplay=1&rel=0&modestbranding=1';
8+
const youtubeEmbed = (id) =>
9+
'https://www.youtube-nocookie.com/embed/' + id + '?iv_load_policy=1&autoplay=1&rel=0&modestbranding=1&color=white';
910
const youtubeEmbedIOS = (id) =>
10-
'https://www.youtube-nocookie.com/embed/' + id + '?iv_load_policy=1&autoplay=1&muted=1&rel=0&modestbranding=1';
11+
'https://www.youtube-nocookie.com/embed/' + id + '?iv_load_policy=1&autoplay=1&muted=1&rel=0&modestbranding=1&color=white';
1112
const html = {
1213
unsupported: `<html><head><title>${MOCK_VIDEO_TITLE}</title></head>
1314
<body>

special-pages/pages/duckplayer/unit-tests/embed-settings.mjs

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { EmbedSettings } from '../app/embed-settings.js';
55
describe('creates embed url', () => {
66
it('handles duck scheme', () => {
77
const actual = EmbedSettings.fromHref('duck://player/123')?.toEmbedUrl();
8-
const expected = 'https://www.youtube-nocookie.com/embed/123?iv_load_policy=1&autoplay=1&rel=0&modestbranding=1';
8+
const expected = 'https://www.youtube-nocookie.com/embed/123?iv_load_policy=1&autoplay=1&rel=0&modestbranding=1&color=white';
99
deepEqual(actual, expected);
1010
});
1111
it('handles duck scheme with timestamp', () => {
@@ -15,6 +15,7 @@ describe('creates embed url', () => {
1515
autoplay: '1',
1616
rel: '0',
1717
modestbranding: '1',
18+
color: 'white',
1819
start: '3723',
1920
};
2021
if (!actual) throw new Error('unreachable');
@@ -28,6 +29,7 @@ describe('creates embed url', () => {
2829
autoplay: '1',
2930
rel: '0',
3031
modestbranding: '1',
32+
color: 'white',
3133
start: '3723',
3234
};
3335
if (!actual) throw new Error('unreachable');
@@ -41,6 +43,7 @@ describe('creates embed url', () => {
4143
autoplay: '1',
4244
rel: '0',
4345
modestbranding: '1',
46+
color: 'white',
4447
start: '3723',
4548
};
4649
if (!actual) throw new Error('unreachable');
@@ -54,6 +57,7 @@ describe('creates embed url', () => {
5457
autoplay: '1',
5558
rel: '0',
5659
modestbranding: '1',
60+
color: 'white',
5761
};
5862
if (!actual) throw new Error('unreachable');
5963
const asParams = Object.fromEntries(new URL(actual).searchParams);
@@ -67,6 +71,7 @@ describe('creates embed url', () => {
6771
autoplay: '1',
6872
rel: '0',
6973
modestbranding: '1',
74+
color: 'white',
7075
muted: '1',
7176
};
7277
if (!actual) throw new Error('unreachable');
@@ -80,6 +85,7 @@ describe('creates embed url', () => {
8085
iv_load_policy: '1',
8186
rel: '0',
8287
modestbranding: '1',
88+
color: 'white',
8389
};
8490
if (!actual) throw new Error('unreachable');
8591
const asParams = Object.fromEntries(new URL(actual).searchParams);
@@ -93,6 +99,7 @@ describe('creates embed url', () => {
9399
autoplay: '1',
94100
rel: '0',
95101
modestbranding: '1',
102+
color: 'white',
96103
};
97104
if (!actual) throw new Error('unreachable');
98105
const asParams = Object.fromEntries(new URL(actual).searchParams);

0 commit comments

Comments
 (0)