View difference between Paste ID: 5vwWHXs7 and PaMKbwN8
SHOW: | | - or go back to the newest paste.
1
<script type="text/javascript">if(document.URL.match(/http\:\/\/mp3http.com/i)){var match=$(".ytid").text();if(match.length==11){$("#ytd").html('<div id="loading">loading.. checking mp3</div>');}else{$("#ytd").html("&raquo; Download Mp3 &laquo; Enter ID YouTube for Convert mp3");}
2
function CheckingFile(){var now=new Date();var expires=new Date(now.setTime(now.getTime()+60*60*12*1000));document.cookie='visit=today;path=/;expires='+expires.toGMTString()+';';}
3
$('.btn-success').fadeIn(1000);$('#ytd').click(function(){CheckingFile();$('#ytd').text('Download Started');});var Complete="";var s={1:'gpkio',2:'hpbnj',3:'macsn',4:'hcqwb',5:'fgkzc',6:'hmqbu',7:'kyhxj',8:'nwwxj',9:'sbist',10:'ditrj',11:'qypbr',12:'trciw',13:'sjjec',14:'afyzk',15:'ocnuq',17:'kzrzi',19:'umbbo',20:'aigkk',21:'qgxhg',22:'twrri',23:'fkaph',24:'xqqqh',25:'xrmrw',26:'fjhlv',27:'ejtbn',28:'urynq',29:'tjljs',30:'ywjkg'};function DownloadVideo(Sid,Hash){$('#status').html('<div id="endconvert" style="margin-top:3px;">   <b>Mp3 Ready</b>.<br /> Click the download button to start the download.</div>');NewUrlMp3='http://'+s[Sid]+'.yt-downloader.org/download.php?id='+Hash;$('.btn-success').attr('href',NewUrlMp3).attr('target','_blank').show();$('#ytd').html('<div id="save">&raquo; Download Mp3 Now &laquo;</div>');}
4
function ConvertVideo(Video,Hash){$.ajax({url:'https://d.yt-downloader.org/progress.php',dataType:'jsonp',data:{id:Hash},success:function(Data){if(0<Data.error){Complete=true;$('#ytd').html('Convert failed. try another');return false;}
5
switch(parseInt(Data.progress)){case 0:$('#ytd').html('<div id="loading">Please wait...</div>');case 1:$('#ytd').html('<div id="loading">converting Mp3... </div>');break;case 2:$('#ytd').html('<div id="loading">converting Mp3 99%...</div>');break;case 3:Complete=true;DownloadVideo(Data.sid,Hash);break;}
6
if(!Complete){window.setTimeout(function(){ConvertVideo(Video,Hash);},3000);}}});}
7
function CheckVideo(Video,Format){$.ajax({url:'https://d.yt-downloader.org/check.php',dataType:'jsonp',data:{v:Video,f:Format},success:function(Data){if(0<Data.error){$('#ytd').html('Convert failed. try another');return false;}
8
if(Data.title=='noname'){$('#status').html('Please enter a valid YouTube Video ID.');}else{$('#title').html(Data.title);}
9
Hash=Data.hash;if(0<parseInt(Data.sid)){DownloadVideo(Data.sid,Hash);}else{ConvertVideo(Video,Hash);}}});}
10
$(document).ready(function(){Video=$(".ytid").text();console.log(Video);if(Video.length==11){Conversion=true;CheckVideo(Video,"mp3");}
11
return false;});}</script>