userscript icon indicating copy to clipboard operation
userscript copied to clipboard

[Feature request]Add option to add all video links in a webpage playlist to mpv playlist

Open ieeyaY opened this issue 1 year ago • 3 comments

As of right now, the userscript can only add the URL to the video that is playing. Could you include an option to add links from webpage , such as youtube playlist, to an MPV playlist?

ieeyaY avatar Aug 09 '24 13:08 ieeyaY

Because the webpage parsing is based on yt-dlp, if yt-dlp doesn't support the playlist on this page, then it will not work.

Adding a play button on such a page will mislead users.

But if you want to play YouTube playlists, it is fine. I just tested the current version of the user script, and it doesn't work at all on Youtube. It is because Youtube updated the CSP rules, which caused a line of code in the script to not work, which has now been fixed.

akiirui avatar Aug 09 '24 23:08 akiirui

image

akiirui avatar Aug 09 '24 23:08 akiirui

And you should to know, apply an userscript to all pages need a permission @match https://violentmonkey.github.io/api/matching/

If it matching all page like @match *://*/*, it is dangerous (This script will run on all web pages, bringing unnecessary risks). So I try to use minimal matching to avoid the above situation.

akiirui avatar Aug 10 '24 03:08 akiirui