mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 22:17:21 +03:00
Fixed channel parsing error.
Fixes whitelisting issues.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user