Fixed channel parsing error.

Fixes whitelisting issues.
This commit is contained in:
Ajay Ramachandran
2019-12-17 18:32:01 -05:00
parent 46ac654224
commit e992844fa2

View File

@@ -499,10 +499,14 @@ function updatePreviewBar() {
function getChannelID() {
//get channel id
let channelNameContainer = document.getElementById("channel-name");
if (channelNameContainer === null) {
//try later
return false;
}
let channelURLContainer = channelNameContainer.querySelector("#container").querySelector("#text-container").querySelector("#text").firstElementChild;
if (channelURLContainer === null) {
//old YouTube theme
let channelContainers = document.getElementsByClassName("yt-user-info");