mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-03-02 02:31:35 +00:00
Preserve session-watched param on auto-proceed
This commit is contained in:
parent
2b2f8bf84a
commit
e0238d7e7d
2 changed files with 6 additions and 4 deletions
|
|
@ -6,8 +6,9 @@ console.log
|
|||
|
||||
video.addEventListener("ended", () => {
|
||||
if (data.continuous) {
|
||||
const first = data.recommendedVideos[0]
|
||||
window.location.assign(`/watch?v=${first.videoId}&continuous=1`)
|
||||
const first = q("#continuous-first")
|
||||
const url = first.querySelector(".title-link").href
|
||||
location.assign(url)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue