RobertWesner / YouTube-Play-All

A tiny userscript adding the Play-All button back to YouTube.
MIT License
13 stars 1 forks source link

support for shorts broken? #1

Closed byakuyamira closed 5 months ago

byakuyamira commented 5 months ago

just used it today, it works for videos perfectly but not shorts

for example https://www.youtube.com/@zurcsan/shorts

I tried fixing it with the following code:

        if (( !window.location.pathname.endsWith('/videos') && !window.location.pathname.endsWith('/shorts') ) || document.querySelector('.play-all-button')) {

the button now appears:
image

but the link it creates is not valid:
image

RobertWesner commented 5 months ago

Shorts work differently from videos and are not supported yet. I am not aware of a playlist for just shorts as of now, but from what I can see just clicking the latest short in the shorts tab lets you play all by the channel. As I don't use shorts myself, I'll need to do some digging first.

RobertWesner commented 5 months ago

Shorts are now playable with the lists UUSH (Short videos) and UUPS (Popular short videos)

byakuyamira commented 5 months ago

Thank you so much!