Skip to content

Commit

Permalink
fix(automatic theater mode): toggling automatic theater mode would pa…
Browse files Browse the repository at this point in the history
…use/play

The current video instead of

toggling theater mode
  • Loading branch information
VampireChicken12 committed Nov 26, 2023
1 parent 416b5f1 commit 9df7c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ window.addEventListener("DOMContentLoaded", function () {
// If player element is not available, return
if (!playerContainer) return;
// Get the size button
const sizeButton = document.querySelector<HTMLButtonElement>("video.html5-main-video");
const sizeButton = document.querySelector<HTMLButtonElement>("button.ytp-size-button");
// If the size button is not available return
if (!sizeButton) return;
sizeButton.click();
Expand Down

0 comments on commit 9df7c7f

Please sign in to comment.