Skip to content

Commit

Permalink
Update player.js #1504 #1990
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube authored Feb 8, 2024
1 parent 2365ccc commit 4b34496
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions js&css/web-accessible/www.youtube.com/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4b34496

Please sign in to comment.