raingart / Nova-YouTube-extension

Apache License 2.0
212 stars 11 forks source link

[Feature] Automatic Loop video #119

Closed yue374 closed 10 months ago

yue374 commented 10 months ago

I frequently utilize the repeat feature to enhance my music listening experience. Would it be possible to incorporate this functionality into your userscript? If possible, it would be better if a certain period of time could be repeated in the video image Thank you for reading!

raingart commented 10 months ago

In previous versions there was such a plugin. But I thought that it would be convenient to enable this function through the context menu (as in the screenshot)

https://github.com/raingart/Nova-YouTube-extension/blob/f4e94b6ba676c53c58e131a0376b8cd592c07606/plugins/player/loop.js

Probably my experience and frequency of using this function is different from yours. Therefore, the standard functionality of the player is enough for me (via the context menu)

can you describe how you want it to function?

yue374 commented 10 months ago

I think setting automatic loop in some special channel is great idea, example I listen music most time in "vevo channel", channel name support wildcard syntax maybe better, because some channel have same name contain word "music"

raingart commented 10 months ago

There is a global plugin Add button "Save params for the channel" it is responsible for activating some enabled plugins for certain channels

raingart commented 10 months ago

I forgot to say that Nova has a music detection function. It defines most of the music. But sometimes (often if the channel is music) then a false detect

yue374 commented 10 months ago

Loop button work fine, but if I switch another video, it can't loop again, so I need click loop button every videos, there is anyway make it remember? And in music video won't automatic loop, example video: https://www.youtube.com/watch?v=tNxUxm3-658

raingart commented 10 months ago

I removed all functions related to music videos and made it almost an analogue of the built-in loop function. The only difference is that the plugin remembers the state and applies it to the next video. And the built-in function only affects the current video

yue374 commented 10 months ago

Thank you so much, now it working perfect!