From e08aa3355e34f986f9303b666e076b6d59de395d Mon Sep 17 00:00:00 2001 From: Rasz_pl Date: Mon, 6 May 2024 21:49:34 +0200 Subject: [PATCH] Update functions.js make sure we are on channel page when calling blocklist(channel --- js&css/web-accessible/functions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js&css/web-accessible/functions.js b/js&css/web-accessible/functions.js index ce982c9fb..dcba40994 100644 --- a/js&css/web-accessible/functions.js +++ b/js&css/web-accessible/functions.js @@ -41,7 +41,7 @@ ImprovedTube.ytElementsHandler = function (node) { this.channelDefaultTab(node); if (this.storage.blocklist_activate && node.classList.contains('ytd-thumbnail')) { - this.blocklist('video', node); + this.blocklist('video', node); } } } /* else if (name === 'META') { // infos are not updated when clicking related videos... @@ -137,7 +137,7 @@ ImprovedTube.ytElementsHandler = function (node) { else if (name === 'YTD-PLAYLIST-HEADER-RENDERER' || (name === 'YTD-MENU-RENDERER' && node.classList.contains('ytd-playlist-panel-renderer'))) { this.playlistPopupUpdate(); } else if (name === 'YTD-SUBSCRIBE-BUTTON-RENDERER' || name === 'YT-SUBSCRIBE-BUTTON-VIEW-MODEL') { - if (this.storage.blocklist_activate) { + if (this.storage.blocklist_activate && location.href.match(ImprovedTube.regex.channel)) { ImprovedTube.blocklist('channel', node); }