Skip to content

Commit

Permalink
feat: hide the it-cinema-mode-button on YT when the ImprovedTube swit…
Browse files Browse the repository at this point in the history
…ch is disabled
  • Loading branch information
peterdanwan committed Dec 1, 2024
1 parent 655b0ee commit d0fa4cc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions js&css/web-accessible/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,14 @@ document.addEventListener('it-message-from-extension', function () {
}
break

case 'playerCinemaModeButton' :
if (ImprovedTube.storage.player_cinema_mode_button === false) {
if (ImprovedTube.elements.buttons['it-cinema-mode-button']) {
ImprovedTube.elements.buttons['it-cinema-mode-button']?.remove();
ImprovedTube.elements.buttons['it-cinema-mode-button']?.remove();
}
}

case 'playerRepeatButton':
if (ImprovedTube.storage.player_repeat_button === false) {
if (ImprovedTube.elements.buttons['it-repeat-button']) {
Expand Down

0 comments on commit d0fa4cc

Please sign in to comment.