mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-12-25 19:30:13 +00:00
fix channel page selector
This commit is contained in:
parent
190f545ef2
commit
ca15cc9c0b
@ -106,7 +106,7 @@ function getBrowser() {
|
||||
}
|
||||
|
||||
function getChannelContainers() {
|
||||
const elements = document.querySelectorAll('#inner-header-container, #owner');
|
||||
const elements = document.querySelectorAll('.yt-flexible-actions-view-model-wiz, #owner');
|
||||
const channelContainerNodes = [];
|
||||
|
||||
elements.forEach(element => {
|
||||
@ -196,7 +196,9 @@ function getChannelHandle(channelContainer) {
|
||||
const videoOwnerRenderer = channelContainer.querySelector('.ytd-video-owner-renderer');
|
||||
|
||||
if (!videoOwnerRenderer) {
|
||||
const channelHandleContainer = document.querySelector('#channel-handle');
|
||||
const channelHandleContainer = document.querySelector(
|
||||
'.yt-content-metadata-view-model-wiz__metadata-text'
|
||||
);
|
||||
channelHandle = channelHandleContainer ? channelHandleContainer.innerText : null;
|
||||
} else {
|
||||
const href = videoOwnerRenderer.href;
|
||||
|
Loading…
Reference in New Issue
Block a user