Skip to content

Commit

Permalink
Merge pull request #1338 from dodieboy/Fix-error
Browse files Browse the repository at this point in the history
Improve hideDetailButton()
  • Loading branch information
Victor Savinov committed Jun 10, 2022
2 parents c02e46e + 4fa63b5 commit 2b636cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion youtube-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ ImprovedTube.ytElementsHandler = function (node) {

this.improvedtubeYoutubeIcon();
this.improvedtubeYoutubeButtonsUnderPlayer();
this.hideDetailButton(node.querySelectorAll('#info #top-level-buttons-computed ytd-button-renderer'));
if(document.documentElement.dataset.pageType == 'video'){
this.hideDetailButton(node.querySelectorAll('#info #top-level-buttons-computed ytd-button-renderer'));
}
} else if (name === 'YTD-VIDEO-SECONDARY-INFO-RENDERER') {
this.elements.yt_channel_name = node.querySelector('ytd-channel-name');
this.elements.yt_channel_link = node.querySelector('ytd-channel-name a');
Expand Down

0 comments on commit 2b636cf

Please sign in to comment.