Skip to content

Commit

Permalink
Update functions.js make sure we are on channel page when calling blo…
Browse files Browse the repository at this point in the history
…cklist(channel
  • Loading branch information
raszpl authored May 6, 2024
1 parent 75ee439 commit e08aa33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js&css/web-accessible/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') { //<META> infos are not updated when clicking related videos...
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit e08aa33

Please sign in to comment.