function in2html(txt){if(!txt){return''}
var txthtml=txt.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');return(txthtml);}
var backlink=in2html(loc),embmedia=new Array(),filetype='',fileURL=new Array(),found=false,home='http:\/\/1024k.de\/bookmarklets\/video-bookmarklets.html',hometitle='title=\"Author\'s homepage\"',host=window.location.hostname,iframe,link,loc=window.location.href,logobottom,logobottomimgsrc='http://www.sacavideos.com/compartido/logo_1024.png',logotop,logotopimgsrc='http://www.sacavideos.com/compartido/logo_videoscript.jpg',mediahost=false,scriptmedia=new Array(),source,urlend,urlstart,urlstra='<div class=\"filelink\"><a href=\"',urlstrb='\" title=\"Descargar video desde ',urlstrc='">Enlace de descarga</a> ',urlstrd='</div>Click derecho -&gt; \"Guardar destino como\"',videoid,xmlhttp=false,xmlhttp_url=false,xmlobject;function rev(str){if(!str){return''}
var revstr='';for(i=str.length-1;i>=0;i--){revstr+=str.charAt(i)}
return revstr;}
function xmlhttp_request(){if(window.XMLHttpRequest){try{xmlhttp=new XMLHttpRequest();}
catch(e){xmlhttp=false;}}
return xmlhttp;}
function outputxhtml(){if(logotopimgsrc!==false){logotop='<a href=\"'+ backlink+'\" title=\"(back to '+ mediahost+')\"><img alt=\"\" class=\"logoimgtop\" src=\"'+ logotopimgsrc+'\" \/><\/a>';}
else{logotop='';}
if(logobottomimgsrc!==false){logobottom='<a href=\"'+ home+'\" '+ hometitle+'><img alt=\"\" class=\"logoimgbottom\" src=\"'+ logobottomimgsrc+'\" \/><\/a>';}
else{logobottom='';}
link=fileURL.join('<\/li><li>');document.write('<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?><!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Strict \/\/EN\" \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-strict.dtd\"><html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"><head><meta http-equiv=\"Content-Type\" content=\"text\/html; charset=iso-8859-15\"></meta><title>Descargar videos, '+host+'<\/title><style type=\"text\/css\"><!--body { margin:0;padding:0 11px;background-color:#78B4F0;font:normal 12px arial,helvetica,sans-serif; }.pagebox { background-color:#FFFFFF;position:relative;min-width:458px;max-width:505px;margin:34px auto;padding:34px;border:1px solid #696969;-moz-border-radius:10px; }h1, h2 { border-bottom:1px solid #C8C8C8; }h1 { margin:0 15px 10px 75px;font-size:18px; }h2 { margin:0 15px 0 75px;padding:2px 15px 15px 0;font-weight:normal;font-size:15px; }ul { margin:12px 15px 5px 93px;padding:0;list-style:square; }.filelink { width:175px;float:left; }.backlink { margin:15px 15px 0 75px;padding:15px 15px 2px 0;border-top:1px solid #C8C8C8; }.link { position:absolute;right:10px;bottom:-22px;}a.linktext { font-weight:normal;font-size:11px;color:#4B4B4B;text-decoration:none; }.logotop { position:absolute;left:11px;top:28px;}.logoimgtop { width:86px;height78px;border:none; }.logobottom { position:absolute;right:10px;bottom:8px;}.logoimgbottom { width:91px;height31px;border:none; }.donation { width:69px;height38px;border:none;position:absolute;left:21px;top:118px; }--><\/style><\/head><body id="all-in-one-video-bookmarklet"><div class=\"pagebox\"><div class=\"logotop\">'+logotop+'<\/div><h1>Saca Videos, '+host+'<\/h1><h2>Se ha encontrado este video en la web <span class=\"em\">'+mediahost+'<\/span>.<\/h2><ul><li>'+link+'<\/li><\/ul><p class=\"backlink\">Volver a <a href=\"'+backlink+'\" title=\"(back to '+mediahost+')\">'+mediahost+'<\/a>, que es donde estabas<\/p><div class=\"link\"><a class=\"linktext\" href=\"'+home+'" '+hometitle+'>(script de 1024k.de<\/a> <a class=\"linktext\" href="http://www.sacavideos.com"> adaptado por sacavideos.com</a>)<\/div><div class=\"donation\"><form action=\"https:\/\/www.paypal.com\/cgi-bin\/webscr\" method=\"post\"><div><input type=\"hidden\" name=\"cmd\" value=\"_s-xclick\" \/><input type=\"hidden\" name=\"encrypted\" value=\"-----BEGIN PKCS7-----MIIHbwYJKoZIhvcNAQcEoIIHYDCCB1wCAQExggEwMIIBLAI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wMFBJCZE32IA0GDuAwAXMgBo2mBJUwMGKjTQewsAYq3euj5pxWFDBZ4OHNAacMFVGgBtJR2gMEdBAwV6EdglHqACBgcWOhN+kMEChNeo8Cl+wnEkx7FpBlT4CGlVcCcXdAUQUKlSBsDYLmi4QF9DgAsBZMLWbnHfv03\/NUHAAqWwVVRCbmnmEP882IASkUuhZJUdVw30gtpLF35SFWoaYghKBOs40c6C8MzjCwP27EdhLya2mA2I0lhAoiUQzmPAJol9w6KLPML4h0rUSGUiYpzkyAEAGySg5JJMNumkkhuEOIlKmQDoiTwvkWKKioXA4qUbU9ijgB0niZgHBAj9wWUYbLb5RY5uxilnE3BS0cGddzqBZwdN5OmBn3\/yGeiegwIqRZ1T+JnnoozyqSieegoa6JtrWvHopJNCqmifkXbqBaJSXCrqnoIS2qekpFYBahSjnprpo4DGKqmqlVbR6quDYnqpq5\/WaqephfLKqLCoAnuor3MmC8Y99BVpwbPQRivttNRWa+1HtdBWEE4xFXQAQGEVhCvuuOSWa+656KYrLhcdVFCGEfTFK++89NZr77340mtEdltM4O+\/AAcs8MAEF2ywwEiwoPDCDDf8QQgAOw==\" name=\"submit\" alt=\"\" title=\"Thank you for your support!\" \/><\/div><\/form><\/div><div class=\"logobottom\">'+logobottom+'<\/div><\/div><\/body><\/html>');document.close();}
function insert_button(){if((fileURL.length!=0)&&(document.getElementById('all-in-one-video-bookmarklet')===null)){document.getElementsByTagName('html')[0].setAttribute('style','margin-top:22px;');var gmnotice=document.createElement('div');gmnotice.setAttribute('id','gmnotice');gmnotice.setAttribute('style','cursor:pointer;position:fixed;top:0;right:0;width:100%;height:21px;padding:0 3px;background-color:#282F33; border-bottom:1px solid #67B5FF');var p=document.createElement('p');p.setAttribute('style','margin:0;padding:3px;font-family:"Century Gothic",Lucida,Verdana,sans-serif;color:#7FB728;font-size:13px;text-align:center;');p.setAttribute('id','gmnotice-p');var text=document.createTextNode('Click AQUI para descargar el video a tu ordenador');document.getElementsByTagName('body')[0].appendChild(gmnotice);gmnotice.appendChild(p);p.appendChild(text);document.getElementById('gmnotice').addEventListener('click',outputxhtml,false);}}
function extracturls(){if(host.match(/break\./i)!=null){mediahost='Break.com'}
else if(host.match(/clipfish\.de/i)!=null){mediahost='Clipfish'}
else if(host.match(/dailymotion\./i)!=null){mediahost='Dailymotion'}
else if(host.match(/google\./i)!=null){mediahost='Google'}
else if(host.match(/metacafe\./i)!=null){mediahost='Metacafe'}
else if(host.match(/myspace\./i)!=null){mediahost='Myspace'}
else if(host.match(/myvideo\./i)!=null){mediahost='MyVideo'}
else if(host.match(/putfile\./i)!=null){mediahost='Putfile'}
else if(host.match(/sevenload\./i)!=null){mediahost='Sevenload'}
else if(host.match(/youtube\./i)!=null){mediahost='YouTube'}
switch(mediahost){case'Break.com':embmedia=document.getElementById('break_player');if(embmedia!=null){source=unescape(embmedia.getAttribute('flashvars'));if(source.match(/videoPath=/i)!==null){urlstart=source.indexOf('videoPath=')+10;urlend=source.indexOf('.flv',urlstart)+4;source=in2html(source.substring(urlstart,urlend));filetype='(.flv)';fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;source=source.replace(/\.flv/,'.wmv');filetype='(.wmv)';fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;}}
insert_button();break;case'Clipfish':embmedia=document.getElementsByTagName('embed');if(embmedia.length==0){insert_button();}
for(i=0;i<embmedia.length;++i){if(embmedia[i].getAttribute('src')!==null){videoid=unescape(embmedia[i].getAttribute('src'));if(videoid.indexOf('videoid=')!=-1){found=true;urlstart=videoid.indexOf('videoid=')+8;if(videoid.indexOf('&',urlstart)!=-1){urlend=videoid.indexOf('&',urlstart);}
else{urlend=videoid.length;}
videoid=videoid.substring(urlstart,urlend);xmlhttp_url='http://'+host+'/video_n.php?videoid='+ videoid;xmlhttp_request();if(xmlhttp!==false){function clipfish_xmlhttp_response(){if((xmlhttp.readyState==4)&&(xmlhttp.status==200)){xmlobject=xmlhttp.responseText;source=in2html(xmlobject.substring(xmlobject.indexOf('&url=')+5,xmlobject.indexOf('.flv')+4));filetype='(.flv)';if(source!=''){fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;}
insert_button();}}
xmlhttp.onreadystatechange=clipfish_xmlhttp_response;xmlhttp.open("GET",xmlhttp_url,true);xmlhttp.send(null);}
break;}}
if((i==(embmedia.length-1))&&(found!==true)){insert_button();}}
break;case'Dailymotion':embmedia=document.getElementsByTagName('embed');for(i=0;i<embmedia.length;++i){if(embmedia[i].getAttribute('flashvars')!==null){source=unescape(embmedia[i].getAttribute('flashvars'));urlstart=source.indexOf('url=')+4;urlend=source.indexOf('&',urlstart);source=in2html(source.substring(urlstart,urlend));filetype='(.flv)';fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;break;}}
insert_button();break;case'Google':iframe=document.getElementById("3rdPartyFrame");if((iframe!=null)&&(iframe.src.match(/google\./i)!==null)){embmedia=iframe.contentDocument.getElementsByTagName('embed');for(i=0;i<embmedia.length;++i){source=unescape(embmedia[i].getAttribute('src'));if(source.indexOf('videoUrl=')!=-1){source=in2html(source.substr(source.indexOf('videoUrl=')+9));filetype='(.flv)';fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;break;}}
if(iframe.contentDocument.getElementById('macdownloadlink')!==null){source=in2html(iframe.contentDocument.getElementById('macdownloadlink').href);filetype='(.avi)';fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;}
if(iframe.contentDocument.getElementById('ipoddownloadlink')!==null){source=in2html(iframe.contentDocument.getElementById('ipoddownloadlink').href);filetype='(.mp4) (iPod)';fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;}
if(iframe.contentDocument.getElementById('pspdownloadlink')!==null){source=in2html(iframe.contentDocument.getElementById('pspdownloadlink').href);filetype='(.mp4) (PSP)';fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;}
insert_button();}
break;case'Metacafe':scriptmedia=document.getElementsByTagName('script');for(i=0;i<scriptmedia.length;++i){if(scriptmedia[i].text.match(/itemID=[0-9]+/i)!==null){found=true;xmlhttp_url=scriptmedia[i].text.match(/itemID=[0-9]+/i);xmlhttp_url='http://'+host+'/fplayer.php?itemID='+ String(xmlhttp_url).match(/[0-9]+/i)+'&t=embedded';xmlhttp_request();if(xmlhttp!==false){function metacafe_xmlhttp_response(){if((xmlhttp.readyState==4)&&(xmlhttp.status==200)){xmlobject=(new DOMParser()).parseFromString(xmlhttp.responseText,"application/xml");source=in2html(xmlobject.getElementsByTagName('playlist')[0].childNodes[1].getAttribute('url'));filetype='(.flv)';if(source!=''){fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;}
insert_button();}}
xmlhttp.onreadystatechange=metacafe_xmlhttp_response;xmlhttp.open("GET",xmlhttp_url,true);xmlhttp.send(null);}
break;}
if((i==(scriptmedia.length-1))&&(found!==true)){embmedia=document.getElementsByTagName('embed');for(j=0;j<embmedia.length;++j){if(embmedia[j].getAttribute('src')!==false){source=unescape(embmedia[j].getAttribute('src'));source=in2html(source.substring(73,source.indexOf('&')));fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;break;}}
insert_button();}}
break;case'Myspace':if(loc.match(/videoID=/i)!==null){videoid=loc.match(/videoID=[0-9]+/i)[0].substr(8);source=in2html('http:\/\/content.movies.myspace.com\/'+ Math.pow(10,7-(videoid.length-5)).toString().substr(1)+videoid.substr(0,videoid.length-5)+'\/'+ rev(videoid.substring(videoid.length-2))+'\/'+ rev(videoid.substring(videoid.length-4,videoid.length-2))+'\/'+ videoid+'.flv');filetype='(.flv)';fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;}
insert_button();break;case'MyVideo':embmedia=document.getElementById('MFP_10');if(embmedia!=null){if(embmedia.getAttribute('flashvars')!==null){source=unescape(embmedia.getAttribute('flashvars'));if(source.match(/videoid=/i)!==null){videoid=source.substring(source.indexOf('videoid=')+8,source.indexOf('&',source.indexOf('videoid=')+8));embmedia=document.getElementsByTagName('a');for(i=0;i<embmedia.length;++i){if(embmedia[i].getAttribute('onclick')!==null){source=unescape(embmedia[i].getAttribute('onclick'));urlstart=source.indexOf('http');urlend=source.indexOf('/thumbs',urlstart)+1;source=in2html(source.substring(urlstart,urlend)+videoid+'.flv');filetype='(.flv)';fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;break;}}}}}
insert_button();break;case'Putfile':embmedia=document.getElementById('flvplayer');if(embmedia!==null){if(embmedia.getAttribute('flashvars')!==null){source=unescape(embmedia.getAttribute('flashvars'));urlstart=source.indexOf('flv=')+4;urlend=source.indexOf('.flv',urlstart)+4;if((urlstart!==-1)&&(urlend!==-1)){source=in2html(source.substring(urlstart,urlend));filetype='(.flv)';fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;}}}
else{embmedia=document.getElementsByTagName('embed');for(i=0;i<embmedia.length;++i){if(embmedia[i].getAttribute('src')!==null){source=unescape(embmedia[i].getAttribute('src'));fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;break;}}}
insert_button();break;case'Sevenload':scriptmedia=document.getElementsByTagName('script');if(scriptmedia.length==0){insert_button();}
for(i=0;i<scriptmedia.length;++i){videoid=scriptmedia[i].text.match(/var id\s*= '(.*)'/gi);if((videoid!==null)&&(RegExp.$1!=='')){found=true;xmlhttp_url='http://'+host+'/api/player/id/'+ RegExp.$1;xmlhttp_request();if(xmlhttp!==false){function sevenload_xmlhttp_response(){if((xmlhttp.readyState==4)&&(xmlhttp.status==200)){xmlobject=xmlhttp.responseXML;source=in2html(xmlobject.getElementsByTagName('video')[0].getAttribute('url'));filetype='(.flv)';if(source!=''){fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;}
insert_button();}}
xmlhttp.onreadystatechange=sevenload_xmlhttp_response;xmlhttp.open("GET",xmlhttp_url,true);xmlhttp.send(null);}
break;}
if((i==(scriptmedia.length-1))&&(found!==true)){insert_button();}}
break;case'YouTube':scriptmedia=document.getElementsByTagName('script');for(i=0;i<scriptmedia.length;++i){if(scriptmedia[i].text.match(/video_id=\S+&.+&t=.+&f/i)!==null){source=scriptmedia[i].text.match(/video_id=\S+&.+&t=.+&f/i);source=in2html(String(source).replace(/(video_id=\S+)&.+(&t=.+)&f/i,'http:\/\/www.youtube.com\/get_video?$1$2'));filetype='(.flv)';fileURL[fileURL.length]=urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;break;}}
insert_button();break;default:break;}}
if(host.match(/google\./i)!==null){document.getElementById("3rdPartyFrame").addEventListener('load',extracturls,false)}
else if(host.match(/dailymotion\./i)!==null){window.addEventListener('load',extracturls,false);}
else if((top==self)||(top[0]==self)){extracturls();}
