A powerful userscript that automatically converts Stremio Web stream links to open directly in MPV player using the mpv-handler protocol.
- Automatic Processing: Seamlessly converts Stremio stream links without user intervention
- MPV Integration: Uses mpv-handler protocol for direct MPV player launch
- Multi-language Support: Available in English, Portuguese (Brazil), and Portuguese (Portugal)
- Quality Control: Configure preferred video quality settings
- Profile Support: Use custom MPV profiles
- Console Options: Choose whether to show MPV console
- Easy Configuration: Access settings through Tampermonkey/Greasemonkey menu
- Real-time Processing: Automatically processes new links as they appear on the page
Download and install MPV player:
- Windows/macOS/Linux: https://mpv.io/installation/
Install the mpv-handler browser extension (v0.3.15 or later):
- Chrome/Edge: Chrome Web Store
- Firefox: Firefox Add-ons
Install a userscript manager extension:
- Install Prerequisites: Ensure MPV player, mpv-handler, and a userscript manager are installed
- Install Script: Click here to install the userscript
- Confirm Installation: Your userscript manager will prompt you to install the script
The script works automatically once installed:
- Navigate to Stremio Web: Go to web.stremio.com or stremio.zarg.me
- Enable M3U Playlist: In Stremio settings, enable the "M3U Playlist" option
- Click Stream Links: The script automatically converts stream links to MPV protocol
- Enjoy: Links now open directly in MPV player
Access configuration through your userscript manager menu:
Tampermonkey/Greasemonkey Menu Options:
- MPV Settings: Configure script preferences
- Process Links Manually: Force manual processing if needed
Available Settings:
- MPV Profile: Choose MPV profile (
defaultor custom profile name) - Prefer Video Quality: Select preferred quality (
default,2160p,1440p,1080p,720p,480p,360p) - Run With Console: Show MPV console (
yesorno)
- Stremio Web: web.stremio.com
- Stremio Zarg: stremio.zarg.me
- Link Detection: Monitors the page for Stremio stream links (data URI format)
- Base64 Decoding: Extracts actual HTTP/HTTPS URLs from encoded data
- Protocol Conversion: Converts URLs to mpv-handler protocol format
- Automatic Launch: Clicking converted links opens MPV directly
- Ensure all prerequisites are installed and up-to-date
- Check that "M3U Playlist" option is enabled in Stremio settings
- Try manually processing links via userscript menu
- Verify mpv-handler extension is installed and enabled
- Check MPV player installation
- Try with "Run With Console" enabled to see error messages
- Open browser console (F12) to check for error messages
- Ensure you're on a supported Stremio site
- Try refreshing the page
Open browser developer console (F12) to see script debug information and processing status.
- Version: 3.9
- mpv-handler Version: v0.3.15
- Supported Browsers: Chrome, Firefox, Edge, Safari (with appropriate userscript managers)
- Dependencies: GM_config library for settings management
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
MIT License - see the script header for full license text.
Ângelo Azevedo
- Removed all debug console logs for cleaner operation
- Silent background processing without console pollution
- Fixed multiple MPV instances opening on single click
- Added throttling to prevent excessive processing
- Improved event listener management with cloning technique
- Enhanced link processing reliability
- Added English menu commands
- Improved user experience
- Added Tampermonkey/Greasemonkey menu integration
- Easy access to settings and manual processing
- Removed manual control buttons for fully automatic operation
- Streamlined user interface
- Removed visual styling of processed links
- Cleaner integration with Stremio interface
- Enhanced link processing with better URL conversion
- Improved click handling for MPV protocol
- Added visual feedback for processed links
- Enhanced CSS styling and user experience
- Improved notification system
- Better debugging capabilities
- Complete rewrite with advanced features
- Multi-language support
- MPV icon integration
- Professional configuration interface
- Based on the excellent Play with MPV script
- Uses mpv-handler for protocol handling
- Built with GM_config for configuration management