Added whitelist support to the old YouTube theme.

This commit is contained in:
Ajay Ramachandran
2019-08-03 22:12:20 -04:00
parent a5580daebd
commit db46d0438f

View File

@@ -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) {
//try later
setTimeout(getChannelID, 100);