Fix missing YouTube channel name right-clickability
This commit is contained in:
parent
97f302b271
commit
8182c47731
@ -146,8 +146,8 @@ function updateTwitterClasses() {
|
|||||||
|
|
||||||
function updateYouTubeChannelHeader() {
|
function updateYouTubeChannelHeader() {
|
||||||
var url = window.location.href;
|
var url = window.location.href;
|
||||||
var title = document.getElementById('channel-title');
|
var title = <HTMLElement>document.querySelector('#channel-header ytd-channel-name yt-formatted-string');
|
||||||
if (title && title.tagName == 'H3') title = null; // search results, already a link
|
if (title && !title.parentElement.offsetParent) title = null;
|
||||||
var currentTitle = title ? title.textContent : null;
|
var currentTitle = title ? title.textContent : null;
|
||||||
|
|
||||||
if (url == lastAppliedYouTubeUrl && currentTitle == lastAppliedYouTubeTitle) return;
|
if (url == lastAppliedYouTubeUrl && currentTitle == lastAppliedYouTubeTitle) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user