您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Combines a floating button, thumbnail clicks, and a Shift+Click fallback context menu to play videos in MPV.
当前为
This is a powerful UserScript that integrates website videos with the MPV media player. It combines the best features of two original scripts and adds new functionalities for a seamless experience, allowing you to play web videos in your native player with customized settings.
For this UserScript to work, you need three key components installed on your system.
Note: This userscript is not compatible with Greasemonkey v4.0+. Please use a manager like Violentmonkey or Tampermonkey.
For Windows Users: It is highly recommended to use shinchiro's mpv builds. These builds conveniently include both
mpv
andyt-dlp
. After installing, remember to runupdater.bat
to get the latest versions.
Install the "Play with MPV (Enhanced)" UserScript in Violentmonkey or Tampermonkey.
Shift + Right-Click
any link to open it with MPV.This script is a synergistic merger of two excellent original scripts, enhancing their features and creating a unified, more powerful tool.
"Play with MPV" by Akatsuki Rui
GM_config
) to customize MPV launch options. This formed the foundation for our script's configuration and on-page button."Click on video thumbnail to play in MPV" by nSinister
This version isn't just a simple combination; it's a complete refactor that improves upon the originals:
Shift + Right-Click
on a link on any site to get a "Play with MPV" option.MutationObserver
to reliably detect new content.Shift
key and right-click the link.Shift
) will show the browser's default context menu.You can access the settings panel to customize the script's behavior.
Here are the available options:
Try to Pass Cookies:
HttpOnly
cookies, you must export them manually using an extension like Get cookies.txt LOCALLY (Chromium) or cookies.txt (Firefox).www.youtube.com.txt
) and placed in the correct directory:
$HOME/.config/mpv-handler/cookies/
(mpv-hander.exe parent folder)\cookies\
MPV Profile:
mpv.conf
. See the MPV Profiles documentation for details.Video Quality:
Video Codec:
Run With Console:
This project stands on the shoulders of giants.
Original Script Repositories:
Special Thanks: