play with mpv
Play videos and songs on the website via mpv-handler, without any background service.
This userscipt is not compatible with Greasemonkey v4.0+, try Violentmoneky or Tampermonkey.
Installation
userscript
mpv-handler
mpv & yt-dlp
Recommended
For Windows users, recommend to install shinchiro's mpv builds.
This build include mpv
and yt-dlp
both, and have a script to update these.
After install this build, remember run updater.bat
to update mpv
and download latest yt-dlp
.
Alternatives
mpv.net is a media player for Windows with a modern GUI.
mpv-handler is compatible with mpv.net, just set mpv
to mpv.net executable binary in config.toml
Usage
Open supported sites and click left-bottom mpv icon.
Enjoy!
Try Pass cookies
For advanced users to view member-only videos.
Because userscript no permissions to access full cookies (like HttpOnly
cookies), then manually export cookies only.
- Open settings, Switch Try Pass Cookies to Yes.
- Export cookies file manually (Chromium, Firefox)
Cookies must be export to these path:
Linux:
$HOME/.config/mpv-handler/cookies/
Windows:
(mpv-hander.exe parent folder)\cookies\
Cookies file name must be following this format:
MPV Profile
For more details, see MPV Profiles
- Open settings, enter your want profile name.
Prefer Video Quality
This feature based on Format Selection
- Open settings, choose your want video quality.
Prefer Video Codec
This feature based on Sorting Format
- Open settings, choose your want video codec.
Run With Console
yes
: Run mpv-handler with console window to view outputs and errors
no
: Run mpv-handler without console window
Supported sites
If you need support for some sites, create a Issue.
Of course, supported sites only.
GitHub
Thanks