codice:
function getYoutubeVideo(){

	var dom = document;
	var v_id = dom.getElementsByTagName("embed")[1].src.match(/video_id=(\w+)\&/)[1];
	var t = dom.getElementsByTagName("embed")[1].src.match(/t=(\w+)\&/)[1];
	var yurl = "http://www.youtube.com/get_video?video_id=" + v_id + "&t=" + t;

	if(!location.href.match(/youtube/)){
		alert("Not a youtube site");
		return null;
	}

	location.href = yurl;

}
Comeunque è OT