mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 22:17:21 +03:00
Add YouTube music to the list of approved sites.
Resolves https://github.com/ajayyy/SponsorBlock/issues/449
This commit is contained in:
@@ -760,7 +760,7 @@ function getYouTubeVideoID(url: string) {
|
|||||||
onInvidious = true;
|
onInvidious = true;
|
||||||
} else if (urlObject.host === "m.youtube.com") {
|
} else if (urlObject.host === "m.youtube.com") {
|
||||||
onMobileYouTube = true;
|
onMobileYouTube = true;
|
||||||
} else if (!["m.youtube.com", "www.youtube.com", "www.youtube-nocookie.com"].includes(urlObject.host)) {
|
} else if (!["m.youtube.com", "www.youtube.com", "www.youtube-nocookie.com", "music.youtube.com"].includes(urlObject.host)) {
|
||||||
if (!Config.config) {
|
if (!Config.config) {
|
||||||
// Call this later, in case this is an Invidious tab
|
// Call this later, in case this is an Invidious tab
|
||||||
utils.wait(() => Config.config !== null).then(() => videoIDChange(getYouTubeVideoID(url)));
|
utils.wait(() => Config.config !== null).then(() => videoIDChange(getYouTubeVideoID(url)));
|
||||||
|
|||||||
Reference in New Issue
Block a user