mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-07 12:07:11 +03:00
Added mobile YouTube site to the whitelist.
This commit is contained in:
@@ -499,7 +499,7 @@ function getYouTubeVideoID(url: string) {
|
|||||||
// Check if valid hostname
|
// Check if valid hostname
|
||||||
if (Config.config && Config.config.invidiousInstances.includes(urlObject.host)) {
|
if (Config.config && Config.config.invidiousInstances.includes(urlObject.host)) {
|
||||||
onInvidious = true;
|
onInvidious = true;
|
||||||
} else if (!["www.youtube.com", "www.youtube-nocookie.com"].includes(urlObject.host)) {
|
} else if (!["m.youtube.com", "www.youtube.com", "www.youtube-nocookie.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