Open in MPV is a fork of Open in VLC. I took everything and modified the manifest with Claude to use MPV instead of VLC.
-
Download the extension:
Get it from https://github.com/drocologue/open-in-mpv/tree/master/0.4.3_0%20-%20Copie -
Load in Chrome:
Enable Developer Mode in Chrome and load the unpacked extension. -
Prerequisites:
- Install yt-dlp and add it to your PATH
- Install MPV and add it to your PATH
If everything is set up correctly, it should work. I might make a preview video later, but I'm lazy, so here we go.
Check out the preview in this Reddit post:
https://www.reddit.com/r/mpv/comments/1nvjwt2/open_any_video_in_mpv_even_embedded/
In case I never update this extension, here's how to do it yourself:
- Go to the Chrome Web Store and install the original Open in VLC extension
- Find it in
%LOCALAPPDATA%\Google\Chrome\User Data\Default\Extensions
(Sort by "Date Created" to find the newest one) - Extract the
open.jsfile - Give it to Claude AI along with this prompt:
I have an updated version of open.js from the Open in VLC extension. I need you to modify it to work with MPV player instead of VLC. The changes should:
1. Replace VLC command-line arguments with MPV equivalents:
- Use --http-header-fields=Referer: <url> for referrer
- Use --user-agent=<agent> for user agent
- Use --force-media-title=<title> for media title
2. Update Windows executable paths to:
- C:\Program Files\mpv\mpv.exe
- C:\Program Files (x86)\mpv\mpv.exe
- %LOCALAPPDATA%\mpv\mpv.exe
- C:\mpv\mpv.exe
- C:\Program Files\mpv.net\mpv.exe
3. Update Linux/Mac paths to use mpv command
4. Change default media-player from 'VLC' to 'MPV'
Here's the original open.js file:
[paste the new open.js content here]
- Copy the output from Claude and paste it into
open.js(delete the old content first)
That's it!