Last active
November 16, 2017 23:35
-
-
Save da411d/e417e0b6aae2ab8066fb687d596d9d0a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo file_get_contents("http://supervideo.tv/checker.php?host={$_GET['host']}&code={$_GET['code']}"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rand(mi, ma){return Math.floor(Math.random() * (ma - mi + 1) + mi);} | |
function randId(){return (new Date()-0).toString(36).replace(/[^a-z]+/g, "").substr(0,8) + "_" +rand(1000000, 9999999);} | |
function byId(id){return document.getElementById(id);} | |
function ajax(u, f, p){ | |
t = (u+"").toString(); | |
if (t.match(/\?/)) { | |
t += '&rand='+randId(); | |
} else { | |
t += '?rand='+randId(); | |
} | |
var xhr = new XMLHttpRequest(); | |
xhr.open('POST', t, 1); | |
xhr.send(p?p:null); | |
xhr.onreadystatechange = function(e){ | |
var xhr = e.target; | |
if (xhr.readyState != 4) return; | |
if (xhr.status != 200) { | |
console.log(xhr.status + ': ' + xhr.statusText); | |
return; | |
} | |
var data = xhr.responseText; | |
return f(data); | |
}; | |
}; | |
if(byId("standout") && byId("standout").querySelector("iframe")){ | |
var videoframe = byId("standout").querySelector("iframe"); | |
var src = videoframe.src; | |
if(src.indexOf("megadrive") != -1){ | |
var checker = "https://mitsuha.app.blastorq.pp.ua/201711162033849_altadefinizione01/checkProxy.php?host=megadrive&code=" + src.split("/").reverse()[0]; | |
ajax(checker, (data) => { | |
if(JSON.parse(data).Server == "OFF"){ | |
var links = []; | |
document.querySelectorAll("#collapse1 > ul > a[data-link]").forEach((el) => { | |
if(el.dataset.link.indexOf("oload") != -1){ | |
links.push(window.location.protocol + el.dataset.link); | |
} | |
}); | |
console.log(links); | |
videoframe.src = links[0]; | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment