mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 22:17:21 +03:00
Added whitelist support to the old YouTube theme.
This commit is contained in:
@@ -307,6 +307,14 @@ function getChannelID() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (channelContainers.length == 0) {
|
||||||
|
//old YouTube theme
|
||||||
|
channelContainers = document.getElementsByClassName("yt-user-info");
|
||||||
|
if (channelContainers.length != 0) {
|
||||||
|
channelURLContainer = channelContainers[0].firstElementChild;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (channelURLContainer == null) {
|
if (channelURLContainer == null) {
|
||||||
//try later
|
//try later
|
||||||
setTimeout(getChannelID, 100);
|
setTimeout(getChannelID, 100);
|
||||||
|
|||||||
Reference in New Issue
Block a user