Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube committed Jun 19, 2024
1 parent 658ceb6 commit ef9ea6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js&css/web-accessible/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ ImprovedTube.initPlayer = function () {

ImprovedTube.forcedPlayVideoFromTheBeginning();
ImprovedTube.playerPlaybackSpeed();
ImprovedTube.subtitles();
ImprovedTube.playerSubtitles();
ImprovedTube.subtitlesLanguage();
ImprovedTube.subtitlesUserSettings();
ImprovedTube.subtitlesDisableLyrics();
Expand Down
6 changes: 3 additions & 3 deletions js&css/web-accessible/www.youtube.com/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(); }
Expand Down

0 comments on commit ef9ea6a

Please sign in to comment.