diff --git a/js&css/web-accessible/www.youtube.com/player.js b/js&css/web-accessible/www.youtube.com/player.js index 8436f9386..db8b203bf 100644 --- a/js&css/web-accessible/www.youtube.com/player.js +++ b/js&css/web-accessible/www.youtube.com/player.js @@ -671,18 +671,16 @@ ImprovedTube.playerScreenshotButton = function () { } }; /*------------------------------------------------------------------------------ -REPEAT ALWAYS +REPEAT -------------------------------------------------------------------------------*/ -ImprovedTube.playerAlwaysRepeat = function () { - if (this.storage.player_always_repeat === true) { +ImprovedTube.playerRepeat = function () { setTimeout(function () { - ImprovedTube.elements.video.setAttribute('loop', ''); - //old from version 3.x? // ImprovedTube.elements.buttons['it-repeat-styles'].style.opacity = '1'; - }, 300); - } -} + ImprovedTube.elements.video.setAttribute('loop', ''); + //ImprovedTube.elements.buttons['it-repeat-styles'].style.opacity = '1'; //old class from version 3.x? that both repeat buttons could have + }, 200); +} /*------------------------------------------------------------------------------ -REPEAT +REPEAT BUTTON ------------------------------------------------------------------------------*/ ImprovedTube.playerRepeatButton = function (node) { if (this.storage.player_repeat_button === true) {