@ms: It goes into the lib/functions.php file, but I've tried this code out and it doesn't work because the YouTube hyperlink is being double-processed (once as a video and once as a normal hyperlink) -- producing invalid HTML. It'll need a bit more adaptation to work properly but I can't really help with that right this moment (brand new baby!)