Advertisement
dahnnyel1

yt

Jun 13th, 2020
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.92 KB | None | 0 0
  1. print("\x0314"+scriptName()+" by binary has been loaded successfully!");
  2.  
  3. //api key AIzaSyDhXrFXnH010b9tVopTOO2E3Hx3fpWp4Gk
  4.  
  5. function onTextAfter(userobj, text)
  6. {
  7. var query;
  8. if(text.includes("."))
  9. {
  10. if(text.includes("cancion "))
  11. {
  12. if(text.includes("de"))
  13. {
  14. query = text.split("de ")[1];
  15. }
  16. if(text.includes("cancion "))
  17. {
  18. query = text.split("cancion ")[1];
  19. }
  20.  
  21. if(text.includes("cancion "))
  22. {
  23. query = text.split("cancion ")[1];
  24. }
  25.  
  26. snipVideo(query, "null");
  27.  
  28. }
  29. }
  30. }
  31.  
  32.  
  33. function onCommand(userobj, command, target, args)
  34. {
  35. if(command.indexOf("cancion") == 0)
  36. {
  37. snipVideo(command.substr(8), userobj);
  38. }
  39.  
  40. }
  41.  
  42. function rs(t)
  43. {
  44. t = t.replace(/\s+/g, '');
  45. return t;
  46. }
  47.  
  48.  
  49. function showMini(url, title, videoId)
  50. {
  51.  
  52. var img_obj = new Scribble();
  53. img_obj.src = url;
  54. img_obj.oncomplete = function()
  55. {
  56.  
  57. var scribble = this;
  58.  
  59. Users.local(function(t)
  60. {
  61. if(!t.version.includes("cb0t") && t.canHTML)
  62. {
  63.  
  64. t.sendHTML("<img src='"+url+"' width='480' height='270'></img> <font color='#b7b6b6' size='2'><br><a style='color: gray;text-decoration: none;' href='https://www.youtube.com/watch?v="+videoId+"'>&#9658;</a> "+title+"");
  65. }
  66. else
  67. {
  68. t.scribble(scribble);
  69. print(t, "\x0314"+title+" - https://www.youtube.com/watch?v="+videoId);
  70. }
  71. });
  72. }
  73.  
  74. img_obj.download();
  75.  
  76. }
  77.  
  78.  
  79. function download(dl)
  80. {
  81. var post = new HttpRequest();
  82. post.src = "http://monkey.cf/post.php?url="+dl;
  83. post.oncomplete = function(){}
  84. post.download();
  85. }
  86.  
  87. function getMusic(url, titulo, videoId, user)
  88. {
  89.  
  90.  
  91. var req = new HttpRequest();
  92. req.src = "https://www.320youtube.com/watch?v="+videoId;
  93. //req.userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36";
  94. req.utf = true;
  95. req.oncomplete = function()
  96. {
  97. var result = this.page;
  98. url = result.split('btn btn-success btn-lg" href="')[1].split('"')[0];
  99. //print(url);
  100. download(url);
  101.  
  102. if(user != "null")
  103. {
  104. //user.sendHTML('<audio controls><source src="'+encodeURIComponent(url)+'" type="audio/mpeg"></audio>');
  105. //user.sendHTML('<embed src="https://www.sheepproductions.com/billy/billy.swf?autoplay=false&f0=''&t0=&total=1&dl=1&repeat=false&repeat=0" quality="high" width="200" height="20" type="application/x-shockwave-flash" /><a style="color: #FFFFFF;text-decoration: none;" href="'+url+'"><img src="https://unexceptional-squea.000webhostapp.com/dl.png"/></a>');
  106. user.sendHTML("<object type='application/x-shockwave-flash' data='http://flash-mp3-player.net/medias/player_mp3_mini.swf' width='200' height='20' style='border-radius: 25px;'><param name='movie' value='http://flash-mp3-player.net/medias/player_mp3_mini.swf' /><param name='bgcolor' value='#FFFFFF' /><param name='FlashVars' value='mp3="+encodeURIComponent(url)+"&amp;autoplay=0&amp;loadingcolor=8A30BF&amp;buttoncolor=B840FF&amp;slidercolor=8A30BF' /></object><a style='color: #FFFFFF;text-decoration: none;' href='"+url+"'><img src='https://unexceptional-squea.000webhostapp.com/dl.png'/></a>");
  107. //user.sendHTML('<embed type="application/x-shockwave-flash" height="20" width="200" src="https://www.sheepproductions.com/billy/billy.swf?autoplay=false&f0='+url+'&t0=Monkeys&total=1" wmode="transparent" quality="high"><img src="https://unexceptional-squea.000webhostapp.com/dl.png"/></a>');
  108. return;
  109. }
  110.  
  111. Users.local(function(x)
  112. {
  113. if(!x.version.includes("cb0t") && x.canHTML)
  114. {
  115. x.sendHTML("<object type='application/x-shockwave-flash' data='http://flash-mp3-player.net/medias/player_mp3_mini.swf' width='200' height='20' style='border-radius: 25px;'><param name='movie' value='http://flash-mp3-player.net/medias/player_mp3_mini.swf' /><param name='bgcolor' value='#FFFFFF' /><param name='FlashVars' value='mp3="+encodeURIComponent(url)+"&amp;autoplay=0&amp;loadingcolor=8A30BF&amp;buttoncolor=B840FF&amp;slidercolor=8A30BF' /></object><a style='color: #FFFFFF;text-decoration: none;' href='"+url+"'><img src='https://unexceptional-squea.000webhostapp.com/dl.png'/></a>");
  116. //x.sendHTML('<embed type="application/x-shockwave-flash" height="20" width="200" src="https://www.sheepproductions.com/billy/billy.swf?autoplay=false&f0='+url+'&t0=Monkeys&total=1" wmode="transparent" quality="high"><img src="https://unexceptional-squea.000webhostapp.com/dl.png"/></a>');
  117. //x.sendHTML('<audio controls><source src="'+encodeURIComponent(url)+'" type="audio/mpeg"></audio>');
  118. //x.sendHTML('<embed src="https://www.sheepproductions.com/billy/billy.swf?autoplay=false&f0='+encodeURIComponent(url)+'&t0='+titulo+'&total=1&dl=1&repeat=false&repeat=0" quality="high" width="200" height="20" type="application/x-shockwave-flash" /><a style="color: #FFFFFF;text-decoration: none;" href="'+url+'"><img src="https://unexceptional-squea.000webhostapp.com/dl.png"/></a>');
  119. }
  120. else
  121. {
  122. print(x, "http://monkey.cf/download.php?cancion="+rs(titulo));
  123. }
  124. });
  125. }
  126.  
  127. req.download();
  128.  
  129. }
  130.  
  131.  
  132. function snipVideo(q, obj)
  133. {
  134.  
  135.  
  136. var snip = new HttpRequest();
  137.  
  138. snip.utf = true;
  139.  
  140. snip.src = "https://www.googleapis.com/youtube/v3/search?key=AIzaSyAFGg6vWWc_n3GR6XvnNsqWP4PIiXN-4A4&part=snippet&type=video&order=relevance&maxResults=17&q="+encodeURIComponent(q);
  141.  
  142. snip.oncomplete = function()
  143. {
  144.  
  145. var json = JSON.parse(this.page);
  146.  
  147. var img_video = json.items[0].snippet.thumbnails.high.url;//.replace("hqdefault", "maxresdefault");
  148.  
  149. var title = json.items[0].snippet.title;
  150.  
  151. if(title.includes("("))
  152. {
  153. var index = title.indexOf("(");
  154. title = title.substr(0, index).toString();
  155. }
  156. if(title.includes("-"))
  157. {
  158. title = title.split("-")[1];
  159. }
  160.  
  161.  
  162. getMusic(img_video, title, json.items[0].id.videoId, obj);
  163.  
  164. /*if(json.items[0].snippet.channelTitle.includes("VEVO"))
  165. {
  166.  
  167. searchVid(this.arg, img_video);
  168.  
  169. }
  170. else
  171. {
  172. makeRequest(json, name, q);
  173. }
  174. */
  175. }
  176.  
  177. snip.download();
  178.  
  179.  
  180. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement