My modified version of youtube plugin:
/*****************************************************************
* Override options for this site
******************************************************************/
// Increase timeout to 60 minutes
$toSet[CURLOPT_TIMEOUT] = 0;
// Strip javascript to simplify the page and stop existing javascript intefering
//$options['stripJS'] = false;
//dont need this
/*****************************************************************
* Pre-parsing applied BEFORE main proxy parser
******************************************************************/
function preParse($input, $type) {
switch ( $type ) {
case 'html':
if(preg_match('/"t"\: "([-a-zA-Z0-9_]{43})/',$input,$tValue)) {
define('T_VALUE',$tValue[1]);
}
if(preg_match('/"video_id"\: "([-a-zA-Z0-9_]{11})/',$input,$videoId)) {
define('VIDEO_ID',$videoId[1]);
}
// Remove noscript message
$input = preg_replace('#\
This instructions shows how to detect Left4Dead game in your pc if it is the non-steam version. 1. Edit the xfire_games.ini file which resides in your xfire installation folder eg. C:\Program Files\Xfire 2. Search for the game reference eg. Left4Dead under code number 5633 and edit the gamepath to point correctly as per your current installation which is the launcherpath and detectexe:
[5633] LongName=Left 4 Dead ShortName=l4d LauncherDirKey=HKEY_LOCAL_MACHINE\SOFTWARE\Valve\Steam\InstallPath LauncherExe=left4dead.exe DetectExe=left4dead.exe
Note: You dont need to change the launcherdirkey registry as it does nothing as far as im concern. 3. Run your xfire. 4. Go to Tools>Options>Games>Not Installed>Left4Dead 5. Select Manual Setup and browse to your correct gamepath 6. I add this extra command line parameter so that l4d loads faster: -console -novid +sv_allow_lobby_connect_only 0 +sv_lan 1 7. Press Apply. If you get into some error, your gamepath is incorrect or you didnt do step 2 above.
You might need to edit the xfire_games.ini over and over again each time xfire updates itself.