You are not logged in.
I have been looking for a way of launching youtube videos in mpv when clicked in firefox, I haven't found anything that can do this. does anyone know if there is an extension or a setting that can run mpv or just a bash script when a url matches a string such as "https://www.youtube.com/watch?v="
Offline
GreaseMonkey + a localhost HTTP server with/in your favourite server-side language.
A GreaseMonkey script, triggering on YouTube address, sends to the server a POST request containing the URL. The server receives the request and launches mpv or a Bash script with the received data. Ensure authentication of the requests! A long, random token should suffice for this simple scenario.
Sometimes I seem a bit harsh — don’t get offended too easily!
Offline