From ef9ea6acb9cca96829fdccd0207cf667be8e4551 Mon Sep 17 00:00:00 2001 From: ImprovedTube Date: Wed, 19 Jun 2024 07:10:50 +0200 Subject: [PATCH] typos --- js&css/web-accessible/functions.js | 2 +- js&css/web-accessible/www.youtube.com/player.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js&css/web-accessible/functions.js b/js&css/web-accessible/functions.js index 98159d307..02530b626 100644 --- a/js&css/web-accessible/functions.js +++ b/js&css/web-accessible/functions.js @@ -362,7 +362,7 @@ ImprovedTube.initPlayer = function () { ImprovedTube.forcedPlayVideoFromTheBeginning(); ImprovedTube.playerPlaybackSpeed(); - ImprovedTube.subtitles(); + ImprovedTube.playerSubtitles(); ImprovedTube.subtitlesLanguage(); ImprovedTube.subtitlesUserSettings(); ImprovedTube.subtitlesDisableLyrics(); diff --git a/js&css/web-accessible/www.youtube.com/player.js b/js&css/web-accessible/www.youtube.com/player.js index f3e5df7e7..89da5c168 100644 --- a/js&css/web-accessible/www.youtube.com/player.js +++ b/js&css/web-accessible/www.youtube.com/player.js @@ -9,13 +9,13 @@ ImprovedTube.autoplayDisable = function (videoElement) { //OR (if we are in a channel and the channel trailer autoplay is off) if (player && !player.classList.contains('ad-showing') // no ads playing - && ((location.href.includes('/watch?') // video page // #1703 + && ( location.href.includes('/watch?') // video page // #1703 // player_autoplay_disable & not playlist && ((this.storage.player_autoplay_disable && !location.href.includes('list=')) // !playlist_autoplay & playlist - || (this.storage.playlist_autoplay === false && location.href.includes('list='))) + || (this.storage.playlist_autoplay === false && location.href.includes('list=')))) // channel homepage & !channel_trailer_autoplay - || (this.storage.channel_trailer_autoplay === false && this.regex.channel.test(location.href)))) { + || (this.storage.channel_trailer_autoplay === false && this.regex.channel.test(location.href))){ setTimeout(function() { try { player.pauseVideo(); } catch (error) { console.log("autoplayDisable: Pausing"); videoElement.pause(); }