Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
Update YT.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Miala-python authored Dec 31, 2023
1 parent 50b8985 commit 2a5ad46
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion YT.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ var params = new URLSearchParams(url.search);
var listValue = params.get("list");

var my_playlist_txt = document.getElementById('my_playlist').innerHTML.trim();
var my_playlist = my_playlist_txt.split(';');
var my_playlist = my_playlist_txt.split(';');

var nopause = 0;

var list_length = my_playlist.length;
if (list_length > 1) {
Expand Down Expand Up @@ -206,6 +208,8 @@ function pageUpdate() {
}


}else if (nopause = 1){
player.playVideo();
}
}
// <iframe id="player" frameborder="0" allowfullscreen="" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" title="Chargement en cours..." width="640" height="360"
Expand Down

0 comments on commit 2a5ad46

Please sign in to comment.