Greasy Fork is available in English.
Play website videos and songs with mpv & youtube-dl
Play website videos and songs with mpv & youtube-dl, without any background service.
This userscipt is not compatible with Greasemonkey v4.0+, try Violentmoneky or Tampermonkey.
For Windows users, recommend to install shinchiro's mpv builds.
This build include
mpv
andyoutube-dl
both, and have a script to update these.After install this build, remember run
updater.bat
to updatempv
and download latestyoutube-dl
.
Or
mpv-handler-linux-x64.zip
mpv-handler
to ~/.local/bin/
mpv-handler.desktop
to ~/.local/share/applications/
Recommend using package manager, but you need packaging it manually.
mpv-handler-windows-x64.zip
mpv
installation folderhandler-install.bat
to register protocol handlerOpen supported sites and click left-bottom mpv icon.
Enjoy!
This feature base on youtube-dl format selection
youtube-dl
For advanced users to view member-only videos.
Because userscript no permissions to access full cookies (like
HttpOnly
cookies), then manually export cookies only.
Cookies must be export to these path:
Linux:
~/.config/mpv/cookies/
Windows:
(mpv-hander.exe parent folder)\cookies\
Cookies file name must be following this format:
www.youtube.com.txt
(https://www.youtube.com/watch?v=BUOmDL1L4XU)Because youtube-dl
is supported too many sites , I cannot add all of these sites to @match
at onetime.
If you need support for some sites, create a Issues.
Of course, youtube-dl
supported sites only.