Logged In: NO

add this to the end of index.php file before echo $_response_body;

if ((dirname($_url) == "http://youtube.com") || (dirname($_url) == "http://www.youtube.com") )
{
preg_match('/player2.swf?(.*)"/i', $_response_body, $player);
if (!empty($player))
{
preg_match('/video_id='.'.*'.'&/i', $player[0], $vid);
if (!empty($vid))
{
$vid_parts = explode('&',$vid[0],-1);
$v_id = rawurldecode($vid_parts [0]);
$t = $vid_parts [2];
$new_player = 'player.swf?domain='.$_script_url.'?'.$_config['url_var_name'].'&'.$v_id.'&'.$t;
$new_player = 'var FO = { movie:"'.$new_player.'",width:"450",height:"370",majorversion:"7",build:"0",bgcolor:"#FFFFFF", flashvars:"" };UFO.create( FO, "playerDiv")';
$newscript = '<script type="text/javascript" src="ufo.js"></script>';
$_response_body = preg_replace('#\&lt;\s*body(.*?)\&gt;#si', "$0\n$newscript" , $_response_body);
$_response_body = str_replace('writeMoviePlayer("playerDiv");', '', $_response_body);
$_response_body = str_replace('var to = new SWFObject("/version-check.swf", "checker", "0", "0", "0", "#FFFFFF");', '', $_response_body);
$_response_body = str_replace('to.write("checkerDiv");', $new_player, $_response_body);
}
}
}