MPVPlay
MPVPlay is a combination of a `.desktop` file and a userscript that allows you to play YouTube videos directly in MPV with the click of a button. The UI integrates nicely into the YouTube button bar where the likes/dislike buttons reside aswell.
Report Bug · Request Feature
Getting Started
Dependencies
- Linux
- mpv
- yt-dlp
- A Chromium or Firefox based browser that supports custom protocols
- A userscript manager extension, for example ViolentMonkey
Installing & Running
Step 1 - .desktop
installation
git clone https://github.com/TibixDev/MPVPlay
cd MPVPlay
cp mpv-opener.desktop ~/.local/share/applications/
cd ~/.local/share/applications/
xdg-mime default mpv-opener.desktop x-scheme-handler/mpv
update-desktop-database
Step 2 - Userscript installation
- Downloading the ViolentMonkey extension for your browser.
- Click the extension icon, click the + button.
- Paste in the contents of
userscript/mpv.js
, save (CTRL + S). - Enjoy! Now when you visit any YouTube video, you will see a button in the like/dislike bar to play the video with MPV.
Roadmap
- Windows Support
- Whatever the community wants
Help
If you encounter any issues feel free to open an issue.
Contribution
If you feel like this project could use some improvements feel free to open a PR. I'll make sure to review it. :)
Authors
Version History
- 0.1
- Initial Release
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
Special thanks, inspiration, code snippets, etc.
- Levev - Massive thanks to you for helping me with the bash!
- StackOverflow - Creating URL schemes in Linux
- StackOverflow - Escaping single-quotes in bash
- StackOverflow - Replacing stuff in bash