quangngai_group
29-01-10, 07:14 PM
Bạn lấy source về save dưới tên "get_link_youtube.hta" và double click vào để dùng nhé
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<title>Get Link from Youtube - TLTR</title>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
body, td, th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 13px;
}
-->
</style></head>
<body>
<strong>Enter youtube's URL:</strong>
<input type="text" name="diachi" size="30" onfocus="this.select()">
<input type="button" name="Button" value="GET LINK" onClick="getlink()">
<br><br><span id="danglay"></span><br><span id="laylink"></span>
</body>
</html>
<script>
try
{
http = new ActiveXObject("MSXML2.XMLHTTP");// IE 5.5+
}
catch(e1)
{
try
{
http = new ActiveXObject("Microsoft.XMLHTTP"); // IE 5.5-
}
catch(e2)
{
http = new XMLHttpRequest(); // non IE
}
}
var chu=".......";
var i=0;
var id1="";
function chaychu()
{
document.getElementById("danglay").innerText="Getting link"+chu.substring(0,i);
if (i==chu.length) i=0;i++;
id1=setTimeout("chaychu()",600);
}
function getlink(){
var trangWeb=document.getElementById("diachi").value;
chaychu();
http.open('GET', trangWeb, true);
http.onreadystatechange = function(){
if (http.readyState==4){
var text = http.responseText;
clearTimeout(id1);i=0;
document.getElementById("danglay").innerText="Get link completed!";
var get=text.substring(text.indexOf(".swf?video_id"),text.indexOf("fo.addParam"));
get=get.substring(get.indexOf("?video_id"),get.indexOf(unescape("%22")));
var tua=text.substring(text.indexOf("<title>"),text.indexOf("</title>"));
tua=tua.substring(17,tua.length)
document.getElementById("laylink").innerHTML="Here is your link: <a href='http://youtube.com/get_video"+get+"'>"+tua+"</a><br><br><b>Notice:</b> Do not click on the link, right click on it then choose Save Target As or use another download program to download it. Remember to change the extension into .flv and use <a href='http://software-files.download.com/sd/_wLLqTNze08WyPRqNAbHhzk-FWYQbzKFih04kkFa2WVrjEQHk8ZoJQtnG-ooEQbpvDl1Fa5zp88qvPpS6CL5__kjRGEK13lb/software/10505954/10467081/3/FLVPlayerSetup.exe?ptype=3001&ontid=2139&siteId=4&edId=3&pid=10505954&psid=10467081'>FLV Player</a> to watch it.";
}
}
http.send(null);
}
</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<title>Get Link from Youtube - TLTR</title>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
body, td, th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 13px;
}
-->
</style></head>
<body>
<strong>Enter youtube's URL:</strong>
<input type="text" name="diachi" size="30" onfocus="this.select()">
<input type="button" name="Button" value="GET LINK" onClick="getlink()">
<br><br><span id="danglay"></span><br><span id="laylink"></span>
</body>
</html>
<script>
try
{
http = new ActiveXObject("MSXML2.XMLHTTP");// IE 5.5+
}
catch(e1)
{
try
{
http = new ActiveXObject("Microsoft.XMLHTTP"); // IE 5.5-
}
catch(e2)
{
http = new XMLHttpRequest(); // non IE
}
}
var chu=".......";
var i=0;
var id1="";
function chaychu()
{
document.getElementById("danglay").innerText="Getting link"+chu.substring(0,i);
if (i==chu.length) i=0;i++;
id1=setTimeout("chaychu()",600);
}
function getlink(){
var trangWeb=document.getElementById("diachi").value;
chaychu();
http.open('GET', trangWeb, true);
http.onreadystatechange = function(){
if (http.readyState==4){
var text = http.responseText;
clearTimeout(id1);i=0;
document.getElementById("danglay").innerText="Get link completed!";
var get=text.substring(text.indexOf(".swf?video_id"),text.indexOf("fo.addParam"));
get=get.substring(get.indexOf("?video_id"),get.indexOf(unescape("%22")));
var tua=text.substring(text.indexOf("<title>"),text.indexOf("</title>"));
tua=tua.substring(17,tua.length)
document.getElementById("laylink").innerHTML="Here is your link: <a href='http://youtube.com/get_video"+get+"'>"+tua+"</a><br><br><b>Notice:</b> Do not click on the link, right click on it then choose Save Target As or use another download program to download it. Remember to change the extension into .flv and use <a href='http://software-files.download.com/sd/_wLLqTNze08WyPRqNAbHhzk-FWYQbzKFih04kkFa2WVrjEQHk8ZoJQtnG-ooEQbpvDl1Fa5zp88qvPpS6CL5__kjRGEK13lb/software/10505954/10467081/3/FLVPlayerSetup.exe?ptype=3001&ontid=2139&siteId=4&edId=3&pid=10505954&psid=10467081'>FLV Player</a> to watch it.";
}
}
http.send(null);
}
</script>