mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-07 20:17:05 +03:00
Fixed channel parsing error.
This commit is contained in:
@@ -521,10 +521,7 @@ function getChannelID() {
|
|||||||
channelURLContainer = channelURLContainer.firstElementChild;
|
channelURLContainer = channelURLContainer.firstElementChild;
|
||||||
} else if (onInvidious) {
|
} else if (onInvidious) {
|
||||||
// Unfortunately, the Invidious HTML doesn't have much in the way of element identifiers...
|
// Unfortunately, the Invidious HTML doesn't have much in the way of element identifiers...
|
||||||
channelContainers = document.querySelector("body > div > div.pure-u-1.pure-u-md-20-24 div.pure-u-1.pure-u-lg-3-5 > div > a");
|
channelURLContainer = document.querySelector("body > div > div.pure-u-1.pure-u-md-20-24 div.pure-u-1.pure-u-lg-3-5 > div > a");
|
||||||
if (channelContainers.length != 0) {
|
|
||||||
channelURLContainer = channelContainers;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
//old YouTube theme
|
//old YouTube theme
|
||||||
let channelContainers = document.getElementsByClassName("yt-user-info");
|
let channelContainers = document.getElementsByClassName("yt-user-info");
|
||||||
|
|||||||
Reference in New Issue
Block a user