Merge branch 'experimental-ajay' of https://github.com/ajayyy/SponsorBlock into add-invidious

This commit is contained in:
Ajay Ramachandran 2019-12-19 00:46:52 -05:00
commit 58c0c6e152

View file

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