Click on video thumbnail to play in MPV

Open videos in external player (mpv) by simply clicking on a thumbnail.

Verze ze dne 13. 06. 2021. Zobrazit nejnovější verzi.

Autor
nsinister
Hodnocení
0 0 0
Verze
0.1
Vytvořeno
13. 06. 2021
Aktualizováno
13. 06. 2021
Size
2,3 KB
Licence
MIT
Spustit na

Description

This userscript will allow you to open videos in external player mpv by simply clicking on a thumbnail without loading bloated video page with web player.

How it works

It simply replaces video thumbnail hyperlinks on a page, changing their protocol from https:// to mpv:// and coding the original URL as base64. The result string is then passed to mpv:// URI handler as base64 string.

Prerequisites in your system

Keep in mind that these instructions are valid for GNU/Linux operating system for now. If you are using proprietary Windows, you are on your own.

Supported sites

  • YouTube
  • Vimeo

Potentially it works with anything that mpv and its youtube-dl backend supports. But in order to add support for a certain website, one needs to find its DOM selector for site specific video thumnails and put it into the dictionary inside the userscript

Installation

  1. Install this script
  2. Install external mpv URL handler. Refer to github repository for more info