diff --git a/manifest.json b/manifest.json index 93a04750a..ed861b609 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "name": "'Improve YouTube!' (Video & YouTube Tools)🎧", "short_name": "ImprovedTube", "description": "Make YouTube tidy & powerful! YouTube Player Size Theme Quality Auto HD Colors Playback Speed Style ad block Playlist Channel H.264", - "version": "3.230", + "version": "3.232", "default_locale": "en", "icons": { "128": "assets/icons/128.png", diff --git a/youtube-scripts.js b/youtube-scripts.js index 1ba750eed..eb1b62a32 100644 --- a/youtube-scripts.js +++ b/youtube-scripts.js @@ -1098,7 +1098,7 @@ ImprovedTube.playerPlaybackSpeed = function(node) { if (ImprovedTube.isset(ImprovedTube.storage.player_playback_speed) && ImprovedTube.storage.player_forced_playback_speed === true) { try { - if (window.location.href.indexOf('music') < 0) { + if (window.location.href.indexOf('music') === -1) { document.querySelector('.html5-video-player').querySelector('video').playbackRate = option; } } catch (err) {} @@ -3202,6 +3202,13 @@ ImprovedTube.timeupdate = function() { ImprovedTube.video_src = this.src; ImprovedTube.videoUpdated(); + } else if (ImprovedTube.latestVideoDuration !== this.duration) { + ImprovedTube.latestVideoDuration = this.duration; + + ImprovedTube.playerQuality(); + ImprovedTube.playerPlaybackSpeed(); + ImprovedTube.playerVolume(); + ImprovedTube.playlistUpNextAutoplay(); } }; @@ -3209,6 +3216,8 @@ ImprovedTube.ended = function() { ImprovedTube.playlistReverseOnEnded(); }; +ImprovedTube.latestVideoDuration = 0; + ImprovedTube.playerUpdate = function() { this.playerPlaybackSpeed(); this.subtitles();