mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 12:37:05 +03:00
Fixed formatting and removed whitelisting fix code.
Whitelisting was now fixed in a different way.
This commit is contained in:
7
utils.js
7
utils.js
@@ -32,11 +32,10 @@ function getYouTubeVideoID(url) {
|
||||
}
|
||||
|
||||
//Check if valid hostname
|
||||
if(!["www.youtube.com", "www.youtube-nocookie.com", ...supportedInvidiousInstances].includes(urlObject.host)) {
|
||||
return false;
|
||||
}
|
||||
else if (supportedInvidiousInstances.includes(urlObject.host)) {
|
||||
if (supportedInvidiousInstances.includes(urlObject.host)) {
|
||||
onInvidious = true;
|
||||
} else if (!["www.youtube.com", "www.youtube-nocookie.com"].includes(urlObject.host)) {
|
||||
return false
|
||||
}
|
||||
|
||||
//Get ID from searchParam
|
||||
|
||||
Reference in New Issue
Block a user