From 2a5ad468f5ee8aa78db076db9d48a132b255d4cb Mon Sep 17 00:00:00 2001 From: Miala <65893041+Miala-python@users.noreply.github.com> Date: Sun, 31 Dec 2023 13:28:04 +0100 Subject: [PATCH] Update YT.js --- YT.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/YT.js b/YT.js index 6365605..97827d2 100644 --- a/YT.js +++ b/YT.js @@ -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) { @@ -206,6 +208,8 @@ function pageUpdate() { } + }else if (nopause = 1){ + player.playVideo(); } } //