Installation:
Drop WebVideo.pm in your WebGUI/lib/WebGUI/Macro/ folder.
Then add this line (without the trailing comma if it's the last one) to the macro list in your WebGUI config file:
"WebVideo" : "WebVideo",
Restart apache and try it out.
Usage:
^WebVideo(http://youtube.com/watch?v=M4-pSxrBMt4);
^WebVideo(http://video.google.com/videoplay?docid=1808273720725631796);
Enjoy.