Greasy Fork is available in English.

Play with mpv

Play website videos and songs with mpv & youtube-dl

Stan na 22-02-2021. Zobacz najnowsza wersja.

Autor
akiirui
Oceny
0 0 0
Wersja
2021.02.22.2
Utworzono
17-11-2020
Zaktualizowano
22-02-2021
Kompatybilność
Kompatybilny z przeglądarką Firefox Kompatybilny z przeglądarką Chrome Kompatybilny z przeglądarką Opera
Licencja
MIT
Dotyczy

Play with mpv handler

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.

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

Windows

  1. Download latest mpv-handler-windows-64.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!

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 Use Cookies to Yes, and save.
  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
  • Twitch Clips
  • 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, welcome to PR or create a Issues.

Of course, youtube-dl supported sites only.

GitHub

Thanks