To handle youtu.be type url's, you can do a simple replace $replace($1-,youtu.be/,youtube.com/watch?v=) I suppose you can do the same for https as well
If you wish it to work on all channels you are on, then just change the #chan to #