any one make direct download link like this
this is direct download link from clicknupload.co
any one make direct download link like this
this is direct download link from clicknupload.co
var Decoder = {
'decode': function (url , content) {
var server = getServer(url,content);
return JSON.stringify(server);
}, 'isEnabled': function () {
return !![];
}
};
var DeServers = {
/**
* @return {string}
*/
'deServers': function () {
var servers = [];
var jawcloud_header ={'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0'};
servers.push({'name': "mp4upload", 'shorten': "MD", 'v': 15});
servers.push({'name': "vidlox", 'shorten': "VL", 'v': 15});
servers.push({'name': "vidoza", 'shorten': "VA", 'v': 15});
servers.push({'name': "onlystream", 'shorten': "OS", 'v': 15});
servers.push({'name': "vk.com", 'shorten': "RK", 'v': 15});
servers.push({'name': "cloudvideo", 'shorten': "CV", 'hls': 1, 'v': 18});
servers.push({'name': "fembed", 'shorten': "FD", 'rq': 1, 'v': 18});
// servers.push({'name': "mixdrop", 'shorten': "MP", 'v': 18});
servers.push({'name': "jawcloud", 'shorten': "JC", 'hls': 1, 'headers': jawcloud_header, 'v': 18});
servers.push({'name': "clipwatching", 'shorten': "CL", 'v': 18});
servers.push({'name': "mediafire", 'shorten': "MF", 'v': 19});
// servers.push({'name': "vidfast", 'shorten': "VF", 'hls': 1, 'v': 18});
// servers.push({'name': "vidsat", 'shorten': "VS", 'hls': 1, 'v': 18});
return JSON.stringify(servers);
}
};
function getServer(url , content){
// if(url.includes("mixdrop")){
// return mixdrop(url,content);
// }
if(url.includes("mp4upload")){
return mp4upload(url,content);
}
if(url.includes("vidlox")){
return vidlox(url,content);
}
if(url.includes("vidoza")){
return vidoza(url,content);
}
if(url.includes("onlystream")){
return Onlystream(url,content);
}
if(url.includes("vk.com")){
return vk(url,content);
}
if(url.includes("cloudvideo")){
return cloudvideo(url,content);
}
if(url.includes("fembed")){
return fembed(url,content);
}
if(url.includes("jawcloud")){
return jawcloud(url,content);
}
if(url.includes("clipwatching")){
return clipwatching(url,content);
}
if(url.includes("mediafire")){
return Mediafire(url,content);
}
/* if(url.includes("vidfast")){
return vidfast(url,content);
}
if(url.includes("vidsat")){
return vidsat(url,content);
}*/
}
function Mediafire(url,content) {
var urls = [];
var myRegEx = /href="(http:\/\/download\d{4}\.mediafire\.com.*?\.mp4)">/g;
var matches = getMatches(content, myRegEx, 1);
for ( i = 0; i < matches.length; i++) {
if (matches[i] !== undefined){
var link = matches[i];
urls.push(link);
}
}
var lo = getLocation(url);
return {
"type": 5,
"url": url,
"host": lo.hostname,
"urls": urls
}
}
function mixdrop(url,content) {
var urls = [];
var myRegEx = /\s+?(eval\(function\(p,a,c,k,e,d\).+)\s+?/g;
var matches = getMatches(content, myRegEx, 1);
if (detect(matches[0])) {
var unpacked = unpack(matches[0]);
var link = "https:" + getMatches(unpacked, /wurl=\"([^\"]+)/g, 1)[0].replace('\\', '');
urls.push(link);
}
var lo = getLocation(url);
return {
"type": 5,
"url": url,
"host":lo.hostname,
"urls": urls
}
}
function mp4upload(url,content) {
var urls = [];
var myRegEx = /script'>(eval.*?).split/g;
var matches = getMatches(content, myRegEx, 1);
var m = matches[0] + ".split('|')))";
if (detect(m)) {
var unpacked = unpack(m);
var link = getMatches(unpacked, /src\("([^"]+)/g, 1)[0].replace('\\', '');
urls.push(link);
}
var lo = getLocation(url);
return {
"type": 5,
"url": url,
"host":lo.hostname,
"urls": urls
}
}
function vidlox(url,content) {
var urls = [];
var myRegEx = /sources\s*:\s*\[(.+?)\]/g;
var matches = getMatches(content, myRegEx, 1);
var res = matches[0].split("\",\"");
for (i = 0; i < res.length; i++) {
var link = res[i].replace("\"","");
if (link.includes(".mp4")){
urls.push(link);
}
}
var lo = getLocation(url);
return {
"type": 5,
"url": url,
"host":lo.hostname,
"urls": urls
}
}
function vidoza(url,content) {
var urls = [];
var myRegEx = /sourcesCode\s*:\s*\[(.+?)\]/g;
var matches1 = getMatches(content, myRegEx, 1);
var matches2 = getMatches(matches1[0], /(["'].*v.mp4)/g, 1);
var link = matches2[0].replace("\"", "");
if (link.includes(".mp4")) {
urls.push(link);
}
var lo = getLocation(url);
return {
"type": 5,
"url": url,
"host": lo.hostname,
"urls": urls
}
}
function Onlystream(url,content) {
var urls = [];
var myRegEx = /(?:updateSrc(?:.*?\"))(.*v.mp4)/g;
var matches = getMatches(content, myRegEx, 1);
var link = matches[0];
if (link.includes(".mp4")) {
urls.push(link);
}
var lo = getLocation(url);
return {
"type": 5,
"url": url,
"host": lo.hostname,
"urls": urls
}
}
function vk(url,content) {
var urls = [];
var myRegEx = /<source\s*src=\\"(.*?)\\"/g;
var matches = getMatches(content, myRegEx, 1);
for (i = 0; i < matches.length; i++) {
var link = matches[i].replace(/[\\]/g, '');
if (link.includes(".mp4")){
urls.push(link);
}
}
var lo = getLocation(url);
return {
"type": 1,
"url": url,
"host":lo.hostname,
"urls": urls
}
}
function cloudvideo(url,content) {
var urls = [];
var myRegEx = /source\ssrc="(https:.*?),(.*?),(.*?),[^"]*|source src="([^"]*)/g;
var matches = myRegEx.exec(content);
if (matches[4]){
if (matches[4].includes("v.mp4")){
var link = matches[4] ;
urls.push(link);
var lo = getLocation(url);
return {
"type": 5,
"url": url,
"host": lo.hostname,
"urls": urls
}
}else if (matches[4].includes("m3u8")){
link = matches[4].replace(/,/g,'') ;
urls.push(link);
var lo = getLocation(url);
return {
"type": 5,
"url": url,
"host": lo.hostname,
"urls": urls
}
}
}else {
for (i = 2; i < matches.length; i++) {
link = matches[1] + matches[i] + '/index-v1-a1.m3u8';
if (!link.includes("undefined")) {
urls.push(link);
}
}
var lo = getLocation(url);
return {
"type": 4,
"url": url,
"host": lo.hostname,
"urls": urls.reverse()
}
}
}
function fembed(url,content) {
var urls = [];
var myArr = JSON.parse(content);
for (i = 0; i < myArr['data'].length; i++) {
var link = myArr['data'][i]['file'];
if(link) {
urls.push(link);
}
}
var lo = getLocation(url);
return {
"type": 7,
"url": url,
"host": lo.hostname,
"urls": urls.reverse()
}
}
function jawcloud(url,content) {
var urls = [];
var myRegEx = /source\ssrc="(https:.*?),(.*?),(.*?),[^"]*|source src="([^"]*)/g;
var matches = myRegEx.exec(content);
if (matches[4]&& matches[4].includes("m3u8")){
var link = matches[4].replace(/,/g,'') ;
if (!link.includes("window.jawplayer")) {
urls.push(link);
}
}else {
for (i = 2; i < matches.length; i++) {
link = matches[1] + matches[i] + '/index-v1-a1.m3u8';
if (!link.includes("undefined") && !link.includes("window.jawplayer")) {
urls.push(link);
}
}
}
var lo = getLocation(url);
return {
"type": 11,
"url": url,
"host": lo.hostname,
"urls": urls.reverse()
}
}
function clipwatching(url,content) {
var urls = [];
var myRegEx =/"(http.*?\/v\.mp4)"/g;
var matches = getMatches(content, myRegEx, 1);
for (i = 0; i < matches.length; i++) {
var link = matches[i];
urls.push(link);
}
var lo = getLocation(url);
return {
"type": 4,
"url": url,
"host":lo.hostname,
"urls": urls
}
}
function vidfast(url,content) {
var urls = [];
var myRegEx = /sources:\s\[{file:"(https:.*?),(.*?),(.*?),\.urlset\/master\.m3u8"/g;
var matches = myRegEx.exec(content);
for ( i = 2; i < matches.length; i++) {
var link = matches[1] + matches[i] + '/index-v1-a1.m3u8';
if (!link.includes("undefined") && !link.includes("window.jawplayer")) {
urls.push(link);
}
}
var lo = getLocation(url);
return {
"type": 7,
"url": url,
"host": lo.hostname,
"urls": urls.reverse()
}
}
function vidsat(url,content) {
var urls = [];
var myRegEx = /sources:\s\[{file:"(https:.*?),(.*?),(.*?),\.urlset\/master\.m3u8"/g;
var matches = myRegEx.exec(content);
for ( i = 2; i < matches.length; i++) {
var link = matches[1] + matches[i] + '/index-v1-a1.m3u8';
if (!link.includes("undefined") && !link.includes("window.jawplayer")) {
urls.push(link);
}
}
var lo = getLocation(url);
return {
"type": 7,
"url": url,
"host": lo.hostname,
"urls": urls.reverse()
}
}
function getMatches(string,regex,index) {
index || (index = 1);
var matches = [];
var match;
while (match = regex.exec(string)) {
matches.push(match[index]);
}
return matches;
}
function getLocation(href) {
var match = href.match(/^(https?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);
return match && {
href: href,
protocol: match[1],
host: match[2],
hostname: match[3],
port: match[4],
pathname: match[5],
search: match[6],
hash: match[7]
}
}
function detect(str) {
return (get_chunks(str).length > 0);
}
function get_chunks(str) {
var chunks = str.match(/eval\(\(?function\(.*?(,0,\{\}\)\)|split\('\|'\)\)\))($|\n)/g);
return chunks ? chunks : [];
}
function unpack(str) {
var chunks = get_chunks(str),
chunk;
for (var i = 0; i < chunks.length; i++) {
chunk = chunks[i].replace(/\n$/, '');
str = str.split(chunk).join(unpack_chunk(chunk));
}
return str;
}
function unpack_chunk(str) {
var unpacked_source = '';
var __eval = eval;
if (detect(str)) {
try {
eval = function(s) { // jshint ignore:line
unpacked_source += s;
return unpacked_source;
}; // jshint ignore:line
__eval(str);
if (typeof unpacked_source === 'string' && unpacked_source) {
str = unpacked_source;
}
} catch (e) {
// well, it failed. we'll just return the original, instead of crashing on user.
}
}
eval = __eval; // jshint ignore:line
return str;
}
How i can use it on html website?I'm intrested in this one too..
there is an app for anime streaming, i snooped the network and found it request this from their server
then you can play the video from internal player and choose from the servers, it doesn't show the original link and doesn't redirect you. it's like using a direct link.
JavaScript:var Decoder = { 'decode': function (url , content) { var server = getServer(url,content); return JSON.stringify(server); }, 'isEnabled': function () { return !![]; } }; var DeServers = { /** * @return {string} */ 'deServers': function () { var servers = []; var jawcloud_header ={'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0'}; servers.push({'name': "mp4upload", 'shorten': "MD", 'v': 15}); servers.push({'name': "vidlox", 'shorten': "VL", 'v': 15}); servers.push({'name': "vidoza", 'shorten': "VA", 'v': 15}); servers.push({'name': "onlystream", 'shorten': "OS", 'v': 15}); servers.push({'name': "vk.com", 'shorten': "RK", 'v': 15}); servers.push({'name': "cloudvideo", 'shorten': "CV", 'hls': 1, 'v': 18}); servers.push({'name': "fembed", 'shorten': "FD", 'rq': 1, 'v': 18}); // servers.push({'name': "mixdrop", 'shorten': "MP", 'v': 18}); servers.push({'name': "jawcloud", 'shorten': "JC", 'hls': 1, 'headers': jawcloud_header, 'v': 18}); servers.push({'name': "clipwatching", 'shorten': "CL", 'v': 18}); servers.push({'name': "mediafire", 'shorten': "MF", 'v': 19}); // servers.push({'name': "vidfast", 'shorten': "VF", 'hls': 1, 'v': 18}); // servers.push({'name': "vidsat", 'shorten': "VS", 'hls': 1, 'v': 18}); return JSON.stringify(servers); } }; function getServer(url , content){ // if(url.includes("mixdrop")){ // return mixdrop(url,content); // } if(url.includes("mp4upload")){ return mp4upload(url,content); } if(url.includes("vidlox")){ return vidlox(url,content); } if(url.includes("vidoza")){ return vidoza(url,content); } if(url.includes("onlystream")){ return Onlystream(url,content); } if(url.includes("vk.com")){ return vk(url,content); } if(url.includes("cloudvideo")){ return cloudvideo(url,content); } if(url.includes("fembed")){ return fembed(url,content); } if(url.includes("jawcloud")){ return jawcloud(url,content); } if(url.includes("clipwatching")){ return clipwatching(url,content); } if(url.includes("mediafire")){ return Mediafire(url,content); } /* if(url.includes("vidfast")){ return vidfast(url,content); } if(url.includes("vidsat")){ return vidsat(url,content); }*/ } function Mediafire(url,content) { var urls = []; var myRegEx = /href="(http:\/\/download\d{4}\.mediafire\.com.*?\.mp4)">/g; var matches = getMatches(content, myRegEx, 1); for ( i = 0; i < matches.length; i++) { if (matches[i] !== undefined){ var link = matches[i]; urls.push(link); } } var lo = getLocation(url); return { "type": 5, "url": url, "host": lo.hostname, "urls": urls } } function mixdrop(url,content) { var urls = []; var myRegEx = /\s+?(eval\(function\(p,a,c,k,e,d\).+)\s+?/g; var matches = getMatches(content, myRegEx, 1); if (detect(matches[0])) { var unpacked = unpack(matches[0]); var link = "https:" + getMatches(unpacked, /wurl=\"([^\"]+)/g, 1)[0].replace('\\', ''); urls.push(link); } var lo = getLocation(url); return { "type": 5, "url": url, "host":lo.hostname, "urls": urls } } function mp4upload(url,content) { var urls = []; var myRegEx = /script'>(eval.*?).split/g; var matches = getMatches(content, myRegEx, 1); var m = matches[0] + ".split('|')))"; if (detect(m)) { var unpacked = unpack(m); var link = getMatches(unpacked, /src\("([^"]+)/g, 1)[0].replace('\\', ''); urls.push(link); } var lo = getLocation(url); return { "type": 5, "url": url, "host":lo.hostname, "urls": urls } } function vidlox(url,content) { var urls = []; var myRegEx = /sources\s*:\s*\[(.+?)\]/g; var matches = getMatches(content, myRegEx, 1); var res = matches[0].split("\",\""); for (i = 0; i < res.length; i++) { var link = res[i].replace("\"",""); if (link.includes(".mp4")){ urls.push(link); } } var lo = getLocation(url); return { "type": 5, "url": url, "host":lo.hostname, "urls": urls } } function vidoza(url,content) { var urls = []; var myRegEx = /sourcesCode\s*:\s*\[(.+?)\]/g; var matches1 = getMatches(content, myRegEx, 1); var matches2 = getMatches(matches1[0], /(["'].*v.mp4)/g, 1); var link = matches2[0].replace("\"", ""); if (link.includes(".mp4")) { urls.push(link); } var lo = getLocation(url); return { "type": 5, "url": url, "host": lo.hostname, "urls": urls } } function Onlystream(url,content) { var urls = []; var myRegEx = /(?:updateSrc(?:.*?\"))(.*v.mp4)/g; var matches = getMatches(content, myRegEx, 1); var link = matches[0]; if (link.includes(".mp4")) { urls.push(link); } var lo = getLocation(url); return { "type": 5, "url": url, "host": lo.hostname, "urls": urls } } function vk(url,content) { var urls = []; var myRegEx = /<source\s*src=\\"(.*?)\\"/g; var matches = getMatches(content, myRegEx, 1); for (i = 0; i < matches.length; i++) { var link = matches[i].replace(/[\\]/g, ''); if (link.includes(".mp4")){ urls.push(link); } } var lo = getLocation(url); return { "type": 1, "url": url, "host":lo.hostname, "urls": urls } } function cloudvideo(url,content) { var urls = []; var myRegEx = /source\ssrc="(https:.*?),(.*?),(.*?),[^"]*|source src="([^"]*)/g; var matches = myRegEx.exec(content); if (matches[4]){ if (matches[4].includes("v.mp4")){ var link = matches[4] ; urls.push(link); var lo = getLocation(url); return { "type": 5, "url": url, "host": lo.hostname, "urls": urls } }else if (matches[4].includes("m3u8")){ link = matches[4].replace(/,/g,'') ; urls.push(link); var lo = getLocation(url); return { "type": 5, "url": url, "host": lo.hostname, "urls": urls } } }else { for (i = 2; i < matches.length; i++) { link = matches[1] + matches[i] + '/index-v1-a1.m3u8'; if (!link.includes("undefined")) { urls.push(link); } } var lo = getLocation(url); return { "type": 4, "url": url, "host": lo.hostname, "urls": urls.reverse() } } } function fembed(url,content) { var urls = []; var myArr = JSON.parse(content); for (i = 0; i < myArr['data'].length; i++) { var link = myArr['data'][i]['file']; if(link) { urls.push(link); } } var lo = getLocation(url); return { "type": 7, "url": url, "host": lo.hostname, "urls": urls.reverse() } } function jawcloud(url,content) { var urls = []; var myRegEx = /source\ssrc="(https:.*?),(.*?),(.*?),[^"]*|source src="([^"]*)/g; var matches = myRegEx.exec(content); if (matches[4]&& matches[4].includes("m3u8")){ var link = matches[4].replace(/,/g,'') ; if (!link.includes("window.jawplayer")) { urls.push(link); } }else { for (i = 2; i < matches.length; i++) { link = matches[1] + matches[i] + '/index-v1-a1.m3u8'; if (!link.includes("undefined") && !link.includes("window.jawplayer")) { urls.push(link); } } } var lo = getLocation(url); return { "type": 11, "url": url, "host": lo.hostname, "urls": urls.reverse() } } function clipwatching(url,content) { var urls = []; var myRegEx =/"(http.*?\/v\.mp4)"/g; var matches = getMatches(content, myRegEx, 1); for (i = 0; i < matches.length; i++) { var link = matches[i]; urls.push(link); } var lo = getLocation(url); return { "type": 4, "url": url, "host":lo.hostname, "urls": urls } } function vidfast(url,content) { var urls = []; var myRegEx = /sources:\s\[{file:"(https:.*?),(.*?),(.*?),\.urlset\/master\.m3u8"/g; var matches = myRegEx.exec(content); for ( i = 2; i < matches.length; i++) { var link = matches[1] + matches[i] + '/index-v1-a1.m3u8'; if (!link.includes("undefined") && !link.includes("window.jawplayer")) { urls.push(link); } } var lo = getLocation(url); return { "type": 7, "url": url, "host": lo.hostname, "urls": urls.reverse() } } function vidsat(url,content) { var urls = []; var myRegEx = /sources:\s\[{file:"(https:.*?),(.*?),(.*?),\.urlset\/master\.m3u8"/g; var matches = myRegEx.exec(content); for ( i = 2; i < matches.length; i++) { var link = matches[1] + matches[i] + '/index-v1-a1.m3u8'; if (!link.includes("undefined") && !link.includes("window.jawplayer")) { urls.push(link); } } var lo = getLocation(url); return { "type": 7, "url": url, "host": lo.hostname, "urls": urls.reverse() } } function getMatches(string,regex,index) { index || (index = 1); var matches = []; var match; while (match = regex.exec(string)) { matches.push(match[index]); } return matches; } function getLocation(href) { var match = href.match(/^(https?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/); return match && { href: href, protocol: match[1], host: match[2], hostname: match[3], port: match[4], pathname: match[5], search: match[6], hash: match[7] } } function detect(str) { return (get_chunks(str).length > 0); } function get_chunks(str) { var chunks = str.match(/eval\(\(?function\(.*?(,0,\{\}\)\)|split\('\|'\)\)\))($|\n)/g); return chunks ? chunks : []; } function unpack(str) { var chunks = get_chunks(str), chunk; for (var i = 0; i < chunks.length; i++) { chunk = chunks[i].replace(/\n$/, ''); str = str.split(chunk).join(unpack_chunk(chunk)); } return str; } function unpack_chunk(str) { var unpacked_source = ''; var __eval = eval; if (detect(str)) { try { eval = function(s) { // jshint ignore:line unpacked_source += s; return unpacked_source; }; // jshint ignore:line __eval(str); if (typeof unpacked_source === 'string' && unpacked_source) { str = unpacked_source; } } catch (e) { // well, it failed. we'll just return the original, instead of crashing on user. } } eval = __eval; // jshint ignore:line return str; }
If anyone knows it's possible to implement to any streaming app?