Skip to content

Commit

Permalink
add automatic picture in picture
Browse files Browse the repository at this point in the history
  • Loading branch information
Sup2point0 authored May 29, 2024
1 parent c238063 commit 245bee7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions live/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ document.getElementById("shortcuts-help")


// ELEMENTS
document.querySelector("youtube-playlist iframe")
.src = "https://www.youtube.com/embed/videoseries?list=PL00nN9ot3iD8DbeEIvGNml5A9aAOkXaIt&index="
+ Math.floor(Math.random() * 94);
const playlist = document.querySelector("youtube-playlist iframe");
playlist.src = "https://www.youtube.com/embed/videoseries?list=PL00nN9ot3iD8DbeEIvGNml5A9aAOkXaIt&index="
+ Math.floor(Math.random() * 94);
playlist.requestPictureInPicture();


// KEYBOARD SHORTCUTS //
Expand Down

0 comments on commit 245bee7

Please sign in to comment.