Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("\x0314"+scriptName()+" by binary has been loaded successfully!");
- //api key AIzaSyDhXrFXnH010b9tVopTOO2E3Hx3fpWp4Gk
- function onTextAfter(userobj, text)
- {
- var query;
- if(text.includes("."))
- {
- if(text.includes("cancion "))
- {
- if(text.includes("de"))
- {
- query = text.split("de ")[1];
- }
- if(text.includes("cancion "))
- {
- query = text.split("cancion ")[1];
- }
- if(text.includes("cancion "))
- {
- query = text.split("cancion ")[1];
- }
- snipVideo(query, "null");
- }
- }
- }
- function onCommand(userobj, command, target, args)
- {
- if(command.indexOf("cancion") == 0)
- {
- snipVideo(command.substr(8), userobj);
- }
- }
- function rs(t)
- {
- t = t.replace(/\s+/g, '');
- return t;
- }
- function showMini(url, title, videoId)
- {
- var img_obj = new Scribble();
- img_obj.src = url;
- img_obj.oncomplete = function()
- {
- var scribble = this;
- Users.local(function(t)
- {
- if(!t.version.includes("cb0t") && t.canHTML)
- {
- 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+"'>►</a> "+title+"");
- }
- else
- {
- t.scribble(scribble);
- print(t, "\x0314"+title+" - https://www.youtube.com/watch?v="+videoId);
- }
- });
- }
- img_obj.download();
- }
- function download(dl)
- {
- var post = new HttpRequest();
- post.src = "http://monkey.cf/post.php?url="+dl;
- post.oncomplete = function(){}
- post.download();
- }
- function getMusic(url, titulo, videoId, user)
- {
- var req = new HttpRequest();
- req.src = "https://www.320youtube.com/watch?v="+videoId;
- //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";
- req.utf = true;
- req.oncomplete = function()
- {
- var result = this.page;
- url = result.split('btn btn-success btn-lg" href="')[1].split('"')[0];
- //print(url);
- download(url);
- if(user != "null")
- {
- //user.sendHTML('<audio controls><source src="'+encodeURIComponent(url)+'" type="audio/mpeg"></audio>');
- //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>');
- 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)+"&autoplay=0&loadingcolor=8A30BF&buttoncolor=B840FF&slidercolor=8A30BF' /></object><a style='color: #FFFFFF;text-decoration: none;' href='"+url+"'><img src='https://unexceptional-squea.000webhostapp.com/dl.png'/></a>");
- //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>');
- return;
- }
- Users.local(function(x)
- {
- if(!x.version.includes("cb0t") && x.canHTML)
- {
- 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)+"&autoplay=0&loadingcolor=8A30BF&buttoncolor=B840FF&slidercolor=8A30BF' /></object><a style='color: #FFFFFF;text-decoration: none;' href='"+url+"'><img src='https://unexceptional-squea.000webhostapp.com/dl.png'/></a>");
- //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>');
- //x.sendHTML('<audio controls><source src="'+encodeURIComponent(url)+'" type="audio/mpeg"></audio>');
- //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>');
- }
- else
- {
- print(x, "http://monkey.cf/download.php?cancion="+rs(titulo));
- }
- });
- }
- req.download();
- }
- function snipVideo(q, obj)
- {
- var snip = new HttpRequest();
- snip.utf = true;
- snip.src = "https://www.googleapis.com/youtube/v3/search?key=AIzaSyAFGg6vWWc_n3GR6XvnNsqWP4PIiXN-4A4&part=snippet&type=video&order=relevance&maxResults=17&q="+encodeURIComponent(q);
- snip.oncomplete = function()
- {
- var json = JSON.parse(this.page);
- var img_video = json.items[0].snippet.thumbnails.high.url;//.replace("hqdefault", "maxresdefault");
- var title = json.items[0].snippet.title;
- if(title.includes("("))
- {
- var index = title.indexOf("(");
- title = title.substr(0, index).toString();
- }
- if(title.includes("-"))
- {
- title = title.split("-")[1];
- }
- getMusic(img_video, title, json.items[0].id.videoId, obj);
- /*if(json.items[0].snippet.channelTitle.includes("VEVO"))
- {
- searchVid(this.arg, img_video);
- }
- else
- {
- makeRequest(json, name, q);
- }
- */
- }
- snip.download();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement