Is there a way to make firefox stream youtube videos in an external player (eg vlc) when you click on a youtube video?  More generally, is it possible to run an external script upon clicking certain types of links, eg those that are of the form www.youtube.com/watch?v=* ?Even more ambitiously, when I click on a youtube video while pressing down CTRL, I want to automatically ssh into my raspberry pi and stream the video on the pi with omxplayer.Any help will be much appreciated.
Firefox: Running external programs on click
raspberry pi;firefox;youtube