Skip to content

Commit

Permalink
Merge pull request #2444 from raszpl/patch-5
Browse files Browse the repository at this point in the history
functions.js channel not initialized on international YT
  • Loading branch information
ImprovedTube authored Jul 4, 2024
2 parents 052b4c3 + 266cb21 commit a30c959
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions js&css/web-accessible/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,9 @@ 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'
|| name === 'YTD-BUTTON-RENDERER')
&& node.classList.contains('ytd-c4-tabbed-header-renderer')) {
} else if (name === 'YTD-SUBSCRIBE-BUTTON-RENDERER'
|| name === 'YT-SUBSCRIBE-BUTTON-VIEW-MODEL'
|| (name === 'YTD-BUTTON-RENDERER' && node.classList.contains('ytd-c4-tabbed-header-renderer'))) {
ImprovedTube.blocklistChannel(node);
ImprovedTube.elements.subscribe_button = node;
} else if (id === 'chat-messages') {
Expand Down

0 comments on commit a30c959

Please sign in to comment.