Skip to content

Commit

Permalink
Merge pull request #2349 from raszpl/patch-5
Browse files Browse the repository at this point in the history
Update player.js fix channel_trailer_autoplay
  • Loading branch information
ImprovedTube authored Jun 9, 2024
2 parents 912b34d + 4528a49 commit 4c785fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js&css/web-accessible/www.youtube.com/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ImprovedTube.autoplayDisable = function (videoElement) {
if (this.storage.player_autoplay_disable
|| this.storage.playlist_autoplay === false
|| this.storage.channel_trailer_autoplay === false) {
const player = this.elements.player || videoElement.closest('#movie_player');
const player = this.elements.player || videoElement.closest('.html5-video-player') || videoElement.closest('#movie_player'); // #movie_player: outdated since 2024?

if (this.video_url !== location.href) { this.user_interacted = false; }

Expand Down

0 comments on commit 4c785fe

Please sign in to comment.