Skip to content

Commit

Permalink
Merge pull request #2246 from raszpl/patch-1
Browse files Browse the repository at this point in the history
Update functions.js check channel page when calling blocklist(channel
  • Loading branch information
ImprovedTube authored May 6, 2024
2 parents 75ee439 + e08aa33 commit f92b508
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 f92b508

Please sign in to comment.