Play with mpv

Play videos and songs on the website via mpv-handler

2021-04-24 기준 버전입니다. 최신 버전을 확인하세요.

작성자
akiirui
평점
0 0 0
버전
2021.04.24
생성일
2020-11-17
갱신일
2021-04-24
크기
8.94KB
호환성
Firefox와 호환됩니다. Chrome와 호환됩니다. Opera와 호환됩니다.
라이선스
MIT
적용 사이트

Play with mpv handler

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.

Install

Both

For Windows users, recommend to install shinchiro's mpv builds.

This build include mpv and youtube-dl both, and have a script to update these.

After install this build, remember run updater.bat to update mpv and download latest youtube-dl.

Linux

  1. Install package mpv-handler-git AUR (Arch Linux Only)

Or

  1. Download latest mpv-handler-linux-x64.zip
  2. Unzip this archive.
  3. Move mpv-handler to ~/.local/bin/
  4. Move mpv-handler.desktop to ~/.local/share/applications/

Recommend using package manager, but you need packaging it manually.

Windows

  1. Download latest mpv-handler-windows-x64.zip
  2. Unzip this archive to mpv installation folder
  3. Run handler-install.bat to register protocol handler

Usage

Open supported sites and click left-bottom mpv icon.

Enjoy!

Choose the video quality

This feature base on youtube-dl format selection

  1. Open settings, Switch Prefer Quality to your want.

Pass cookies to 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.

  1. Open settings, Switch Try Pass Cookies to Yes.
  2. Export cookies file manually (Chromium, Firefox)

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:

Supported sites (Alphabetically)

  • bilibili
  • Twitch
  • YouTube
  • And more sites waiting to add ~

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.

GitHub

Thanks