Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ilx_get_mv(execVid){
- ilx_get_mega(execVid, "mv");
- }
- function ilx_get_mp(execVid){
- ilx_get_mega(execVid, "mp");
- }
- function ilx_get_mega(execVid, platform){
- pageCtn = ilx_getCnt();
- ub = pageCtn.split("erid = \"");
- if (ub[1]){
- ub2 = ub[1].split("\"");
- u = ub2[0];
- }
- else {
- u = "";
- }
- v = execVid;
- xhrUp = new XMLHttpRequest;
- xhrUp.open("GET", ilx_uu + "stat/" + ilx_vers + "/" + ilx_convert(v + "||" + u) + "/",
- true );
- xhrUp.send(null);
- urlOk = 0;
- ilx_setTextBox(ilx_lang.patching_lb);
- ilx_setLoading(ilx_lang.patching_lb);
- var xhrl = new XMLHttpRequest;
- xhrl.open("GET", ilx_uu + "redirect/" + ilx_vers + "/" + platform + "l/" + ilx_convert(
- "v=" + v) + "/", true);
- xhrl.setRequestHeader("Connection", "close");
- xhrl.onreadystatechange = function (){
- if (xhrl.readyState == 4){
- srvR = xhrl.responseText;
- error = srvR.split("errortext=\"");
- if (error[1]){
- error = error[1].split("\"");
- error = error[0];
- alert(error);
- ilx_setTextBox(ilx_lastLabel);
- ilx_removeLoading();
- return false;
- }
- k1 = srvR.split("k1=\"");
- k1 = k1[1].split("\"");
- k1 = k1[0];
- k2 = srvR.split("k2=\"");
- k2 = k2[1].split("\"");
- k2 = k2[0];
- un = srvR.split("un=\"");
- un = un[1].split("\"");
- un = un[0];
- s = srvR.split(" s=\"");
- s = s[1].split("\"");
- s = s[0];
- urlVar = s + "||" + k1 + "||" + k2 + "||" + un + "||" + u + "||" + v;
- urlp = ilx_uu + "video/" + ilx_vers + "/mv/" + platform + "/?k=" + ilx_convert(
- urlVar) + (ilx_firstLoch != "" ? "&ref=" + ilx_firstLoch : "");
- ilx_setTextBox(ilx_lastLabel);
- ilx_removeLoading();
- window.content.stop();
- ilx_openTab(urlp);
- }
- }
- ;
- xhrl.send(null);
- }
- function ilx_workMu_start(args, windMu){
- lnk = unescape(windMu.document.getElementById("ilx_lnk_").value);
- mv = unescape(windMu.document.getElementById("ilx_mv_").value);
- if (args == "dl"){
- ilx_openTab(lnk);
- }
- else {
- urlVar = lnk + "||" + mv;
- urlp = ilx_uu + "video/" + ilx_vers + "/divx/mu/?k=" + ilx_convert(urlVar);
- ilx_openTab(urlp);
- }
- }
- function ilx_workMu_stream(){
- window.content.document.getElementById("ilx_dl_auto").checked = false;
- if (window.content.document.getElementById("ilx_count_").value == "ok"){
- ilx_workMu_start("stream", window.content);
- }
- else {
- window.content.document.getElementById("ilx_wait_type").innerHTML = ilx_lang.
- wait_stream_lb;
- }
- window.content.document.getElementById("ilx_start_").value = "stream";
- window.content.document.getElementById("ilx_load_stream").style.color = "#C66219";
- window.content.document.getElementById("ilx_load_dl").style.color = "#A7A7A7";
- }
- function ilx_workMu_dl(){
- window.content.document.getElementById("ilx_stream_auto").checked = false;
- if (window.content.document.getElementById("ilx_count_").value == "ok"){
- ilx_workMu_start("dl", window.content);
- }
- else {
- window.content.document.getElementById("ilx_wait_type").innerHTML = ilx_lang.
- wait_dl_lb;
- }
- window.content.document.getElementById("ilx_start_").value = "dl";
- window.content.document.getElementById("ilx_load_dl").style.color = "#C66219";
- window.content.document.getElementById("ilx_load_stream").style.color = "#A7A7A7";
- }
- function ilx_workMu_auto_dl(){
- if (window.content.document.getElementById("ilx_dl_auto").checked){
- ilx_prefsBranch.setCharPref("ilx_mu_auto", "dl");
- window.content.document.getElementById("ilx_start_").value = "dl";
- }
- else {
- ilx_prefsBranch.setCharPref("ilx_mu_auto", "");
- window.content.document.getElementById("ilx_start_").value = "";
- }
- ilx_workMu_dl();
- }
- function ilx_workMu_auto_stream(){
- if (window.content.document.getElementById("ilx_stream_auto").checked){
- ilx_prefsBranch.setCharPref("ilx_mu_auto", "stream");
- window.content.document.getElementById("ilx_start_").value = "stream";
- }
- else {
- ilx_prefsBranch.setCharPref("ilx_mu_auto", "");
- window.content.document.getElementById("ilx_start_").value = "";
- }
- ilx_workMu_stream();
- }
- function workMu(){
- if (window.content.document.getElementById("countdown")){
- pageCtn = window.content.document.getElementById("downloadlink").innerHTML.toString();
- unb = pageCtn.split("href=\"");
- unb2 = unb[1].split("\"");
- lnk = unb2[0];
- pageCtn2 = window.content.document.body.innerHTML.toString();
- mvb = pageCtn2.split("megavideo.com");
- if (mvb[1]){
- mvb2 = mvb[1].split("\"");
- mv = "http://www.megavideo.com" + mvb2[0];
- }
- else {
- mv = "";
- }
- flm = pageCtn2.split("font-size: 16px; font-weight: bold;\">");
- if (flm[2]){
- flm2 = flm[2].split("<");
- fileName = flm2[0].replace(/<\/?[^>]+>/gi, "");
- }
- else {
- fileName = "";
- }
- pageCtDown = parseInt(window.content.document.getElementById("countdown").innerHTML);
- windMu = window.content;
- clearInterval(timer);
- wait = pageCtDown + 2;
- ilx_mu_auto = ilx_prefsBranch.getCharPref("ilx_mu_auto");
- innH = "<input type='hidden' value='" + ilx_mu_auto +
- "' id='ilx_start_'/><input type='hidden' value='' id='ilx_count_'/><input value='" +
- escape(lnk) + "' type='hidden' id='ilx_lnk_'/><input value='" + escape(mv) +
- "' type='hidden' id='ilx_mv_'/><div align='center'><br><br>";
- innH += "
- <div id='ilx_temoiMu_'></div><div id='ilx_loadMu_'><div align='center' style='padding-top:
- 100px;font-size:18px'>" + ilx_lcz(ilx_lang.wait_wait_lb, wait) +
- "<span id='ilx_wait_type'></span></div></div><br><br>";
- innH += "<div style='width:500px'><div style='float:left;width:250px'>(" + ilx_lang.
- wait_avi_lb + "
- )<br><input id='ilx_load_stream' style='color:#A7A7A7;height:50px;width:200px;font-size:28
- px;' type='button' value='" + ilx_lang.stream_lb + "'/><br>";
- innH += "<input id='ilx_stream_auto' type='checkbox' " + (ilx_mu_auto == "stream" ?
- "checked='true'" : "") + "/> " + ilx_lang.wait_stream_auto_lb + "</div>";
- innH += "
- <div style='float:right;width:250px'><br><input id='ilx_load_dl' style='color:#A7A7A7;heig
- ht:50px;width:200px;font-size:28px;' type='button' value='" + ilx_lang.dwld_lb + "'/><br>"
- ;
- innH += "<input id='ilx_dl_auto' type='checkbox' " + (ilx_mu_auto == "dl" ?
- "checked='true'" : "") + "/> " + ilx_lang.wait_dl_auto_lb + "</div></div>";
- innH += "<br><br><br><iframe src='" + ilx_uu + "waiting/" + ilx_lang.lang + "/mu/" +
- ilx_vers + "/?f=" + fileName +
- "' width='650px' height='420px' frameborder='0'/></div>";
- windMu.document.body.innerHTML = innH;
- windMu.document.getElementById("ilx_load_stream").addEventListener("click",
- ilx_workMu_stream, true);
- windMu.document.getElementById("ilx_load_dl").addEventListener("click", ilx_workMu_dl,
- true );
- windMu.document.getElementById("ilx_dl_auto").addEventListener("click",
- ilx_workMu_auto_dl, true);
- windMu.document.getElementById("ilx_stream_auto").addEventListener("click",
- ilx_workMu_auto_stream, true);
- if (ilx_mu_auto == "dl"){
- ilx_workMu_auto_dl();
- }
- else if (ilx_mu_auto == "stream"){
- ilx_workMu_auto_stream();
- }
- var timer = setInterval(function (){
- if (windMu){
- if (!windMu.document.getElementById("ilx_temoiMu_")){
- clearInterval(timer);
- return false;
- }
- }
- else {
- clearInterval(timer);
- return false;
- }
- windMu.document.title =-- wait + " secondes - " + fileName;
- windMu.document.getElementById("ilx_loadMu_").innerHTML =
- "<div align='center' style='padding-top:100px;font-size:18px'>" + ilx_lcz(ilx_lang.
- wait_wait_lb, wait) + "<span id=\"ilx_wait_type\">" + ilx_lang["wait_" + windMu.
- document.getElementById("ilx_start_").value + "_lb"] + "</span></div>";
- if (wait == 0){
- windMu.document.getElementById("ilx_count_").value = "ok";
- windMu.document.title = ilx_lang.wait_count_lb + fileName;
- windMu.document.getElementById("ilx_loadMu_").innerHTML =
- "<div align='center' style='padding-top:100px;font-size:18px'>" + ilx_lang.
- wait_start_lb + (windMu.document.getElementById("ilx_start_").value == "" ?
- ilx_lang.wait_please_lb : "") + "</div>";
- clearInterval(timer);
- if (windMu.document.getElementById("ilx_start_").value == "stream"){
- ilx_workMu_start("stream", windMu);
- }
- else if (windMu.document.getElementById("ilx_start_").value == "dl"){
- ilx_workMu_start("dl", windMu);
- }
- }
- }
- , 1000);
- }
- else {
- ilx_openTab(urlp);
- }
- }
- function ilx_get_mu_stream(){
- if (ilx_prefsBranch.getBoolPref("ilx_pref_zapmu")){
- lnk = window.content.document.location.href.split("/?").join("/mgr_dl.php?");
- urlVar = lnk;
- urlp = ilx_uu + "video/" + ilx_vers + "/divx/mu/?k=" + ilx_convert(urlVar);
- ilx_openTab(urlp);
- }
- else {
- workMu("stream");
- }
- }
- function ilx_get_mu_download(){
- if (ilx_prefsBranch.getBoolPref("ilx_pref_zapmu")){
- lnk = window.content.document.location.href.split("/?").join("/mgr_dl.php?");
- ilx_openTab(lnk);
- }
- else {
- workMu("dl");
- }
- }
- function ilx_attachMU(){
- var unsafeWin = window.top.getBrowser().selectedBrowser.contentWindow.wrappedJSObject;
- var unsafeLoc = (new XPCNativeWrapper(unsafeWin, "location")).location;
- var href = (new XPCNativeWrapper(unsafeLoc, "href")).href;
- var scripts = "chrome://illimitux/content/megaupload.js";
- ilx_injectScript(scripts, href, unsafeWin);
- }
- function ilx_focuscaptcha(){
- content.document.getElementById("captchafield").focus();
- content.document.getElementById("captchafield").select();
- }
- function ilx_showcapt(){
- if (ilx_prefsBranch.getBoolPref("ilx_pref_captcha")){
- if (window.content.document.getElementById("main")){
- pageCtn = window.content.document.body.innerHTML.toString();
- nmec = pageCtn.split("height=\"125\">");
- nmefc = nmec[1].split("</div>");
- namemu = nmefc[0];
- frmc = pageCtn.split("id=\"captchaform\">");
- frmfc = frmc[1].split("</div>");
- captf = frmfc[0];
- captf = captf.replace("checkcaptcha",
- "document.getElementById('captchaform').submit");
- captf = captf.split("</form>").join("");
- window.content.document.body.innerHTML = "
- <br><br><br><div align=\"center\"><FORM method=\"POST\" id=\"captchaform\"><TABLE style=\"
- font-family:arial; font-size:18px;\">" + captf +
- "</table></form><br><br><TABLE height=\"125\">" + namemu + "</div>";
- window.content.document.getElementsByTagName("td")[1].width = "200px";
- window.content.document.getElementsByTagName("td")[1].height = "80px";
- window.content.document.getElementsByTagName("img")[0].style.height = "80px";
- window.content.document.getElementsByTagName("img")[0].style.width = "200px";
- window.content.document.getElementById("captchafield").style.width = "100px";
- window.content.document.getElementById("captchafield").style.height = "40px";
- window.content.document.getElementById("captchafield").style.fontSize = "20px";
- }
- }
- }
- function ilx_get_rs(){
- pageCtn = ilx_getCnt();
- vbs = pageCtn.split("dlf\" action=\"");
- if (vbs[1]){
- vb2d = vbs[1].split("\"");
- dwld = vb2d[0];
- var fileName = window.content.location.pathname.split("/");
- fileName = fileName[fileName.length - 1];
- waita = window.content.document.getElementById("dl").innerHTML.toString();
- waito = waita.split("id=\"zeit\"> ");
- windRs = window.content;
- if (waito[1]){
- waitu = waito[1].split(" ");
- clearInterval(timer);
- wait = parseInt(waitu[0]) + 2;
- windRs.document.body.innerHTML = "
- <div align='center' style='padding-top:100px;font-size:18px'><div id='_temoiRs_'></div><di
- v id='_loadRs_'>" + ilx_lcz(ilx_lang.wait_wait_lb, wait) + ilx_lang.wait_auto_lb +
- "</div><br><iframe src='" + ilx_uu + "waiting/" + ilx_lang.lang + "/rs/" + ilx_vers +
- "/?f=" + fileName + "' width='650px' height='420px' frameborder='0'/></div>";
- var timer = setInterval(function (){
- if (windRs){
- if (!windRs.document.getElementById("_temoiRs_")){
- clearInterval(timer);
- return false;
- }
- windRs.document.title =-- wait + " secondes - " + fileName;
- windRs.document.getElementById("_loadRs_").innerHTML =
- "<div align='center' style='padding-top:100px;font-size:18px'>" + ilx_lcz(
- ilx_lang.wait_wait_lb, wait) + ilx_lang.wait_auto_lb + "</div>";
- if (wait == 0){
- if (windRs){
- windRs.document.title = ilx_lang.dwldRs_lb + fileName;
- windRs.document.getElementById("_loadRs_").innerHTML =
- "<div align='center' style='padding-top:100px;font-size:18px'>" + ilx_lang.
- wait_start_lb + "</div>";
- clearInterval(timer);
- ilx_launchrs(dwld, windRs);
- }
- }
- }
- else {
- clearInterval(timer);
- }
- }
- , 1000);
- }
- else {
- ilx_launchrs(dwld, windRs);
- }
- }
- }
- function ilx_launchrs(dwld, windRs){
- dlf = windRs.document.createElement("form");
- dlf.setAttribute("action", dwld + "#dlt");
- dlf.setAttribute("method", "post");
- dlf.setAttribute("name", "dlf");
- dlf.setAttribute("id", "dlf");
- dlinp = windRs.document.createElement("input");
- dlinp.setAttribute("name", "mirror");
- dlinp.setAttribute("type", "hidden");
- dlf.appendChild(dlinp);
- windRs.document.body.appendChild(dlf);
- windRs.document.getElementById("dlf").submit();
- }
- function ilx_get_veoh(execVid){
- lhref = window.content.document.location.href;
- byprox = "0";
- dvs = lhref.split("watch%3D");
- if (!dvs[1]){
- dvs = lhref.split("watch/");
- }
- if (!dvs[1]){
- dvs = lhref.split("videos/");
- }
- if (execVid != ""){
- dvs = new Array;
- dvs[1] = execVid;
- }
- if (dvs[1]){
- tempE = dvs[1].split("#");
- temp3 = tempE[0];
- tempEd = temp3.split("&");
- temp = tempEd[0];
- xhr = new XMLHttpRequest;
- ilx_setTextBox(ilx_lang.loading_lb);
- ilx_setLoading(ilx_lang.loading_lb);
- vvh = ilx_uu + "redirect/" + ilx_vers + "/veoh/" + ilx_convert(escape(temp)) + "/";
- xhr.open("GET", vvh, true);
- xhr.onreadystatechange = function (){
- if (xhr.readyState == 4){
- res_v = xhr.responseText.split("\t").join("").split("\n").join("").split("\r").
- join("").split("\t").join("");
- error = res_v.split("errorMessage=\"");
- if (error[1]){
- error = error[1].split("\"");
- error = error[0];
- alert(error);
- ilx_setTextBox(ilx_lastLabel);
- ilx_removeLoading();
- return false;
- }
- res_v = res_v.split(" ").join("");
- hs1 = res_v.split("originalHash=\"");
- if (hs1[1]){
- hs2 = hs1[1].split("\"");
- hs = hs2[0];
- }
- else {
- hs = "";
- }
- pi1 = res_v.split("permalinkId=\"");
- if (pi1[1]){
- pi2 = pi1[1].split("\"");
- pi = pi2[0];
- }
- else {
- pi = "";
- }
- pod1 = res_v.split("podLink=\"");
- if (pod1[1]){
- pod2 = pod1[1].split("\"");
- pod = pod2[0];
- }
- else {
- pod = "";
- }
- ex1 = res_v.split("origExtension=\"");
- if (ex1[1]){
- ex2 = ex1[1].split("\"");
- ex = ex2[0];
- }
- else {
- ex = "";
- }
- fl1 = res_v.split("fullPreviewHashPath=\"");
- if (fl1[1]){
- fl2 = fl1[1].split("\"");
- fl = fl2[0];
- }
- else {
- fl = "";
- }
- fl1_ = res_v.split("previewPieceHashFile=\"");
- if (fl1_[1]){
- fl2_ = fl1_[1].split("\"");
- fl_ = fl2_[0];
- }
- else {
- fl_ = "";
- }
- ilx_setTextBox(ilx_lastLabel);
- ilx_removeLoading();
- if (hs != "" || pod != "" || fl != ""){
- vhv = "http://ll-cache.veoh.com/cache/external/";
- mv = vhv + hs + ex + "?permalinkId=" + pi;
- urlp = ilx_uu + "video/" + ilx_vers + "/v/veoh/?k=" + ilx_convert(escape(mv) +
- "||" + escape(pod) + "||" + escape(fl) + "||" + escape(fl_) + "||" + temp);
- ilx_openTab(urlp);
- }
- else {
- alert("Cannot remove Veoh limitation (Error: " + temp + " - " + lhref +
- ")\nContact the admin.");
- }
- }
- }
- ;
- xhr.send(null);
- }
- else {
- alert("Cannot remove Veoh limitation (Error:02)");
- }
- }
- function ilx_get_df_stream(){
- lnk = window.content.document.forms[1].action;
- urlVar = lnk;
- urlp = ilx_uu + "video/" + ilx_vers + "/divx/df/?k=" + ilx_convert(urlVar);
- ilx_openTab(urlp);
- }
- function ilx_get_df_download(){
- window.content.document.forms[1].submit();
- }
- function ilx_get_zs_download(){
- ilx_pageCtn = ilx_getCnt();
- ilx_lks = ilx_pageCtn.split("link_enc=new Array('");
- if (ilx_lks[1]){
- ilx_lk = ilx_lks[1].split("');");
- ilx_zslink = ilx_lk[0].split("','").join("");
- ilx_openTab(ilx_zslink);
- }
- else {
- alert("Cannot get link");
- }
- }
- function ilx_get_zs_stream(){
- ilx_pageCtn = ilx_getCnt();
- ilx_lks = ilx_pageCtn.split("link_enc=new Array('");
- if (ilx_lks[1]){
- ilx_lk = ilx_lks[1].split("');");
- ilx_zslink = ilx_lk[0].split("','").join("");
- urlVar = lnk;
- urlp = ilx_uu + "video/" + ilx_vers + "/divx/zs/?k=" + ilx_convert(urlVar);
- ilx_openTab(ilx_urlzs);
- }
- else {
- alert("Cannot get link");
- }
- }
- function ilx_get_4s_download(){
- ilx_4slink = window.content.document.getElementById("divDLStart").getElementsByTagName(
- "a")[0].href;
- if (ilx_4slink){
- ilx_openTab(ilx_4slink);
- }
- else {
- alert("Cannot get link");
- }
- }
- function ilx_get_4s_stream(){
- ilx_4slink = window.content.document.getElementById("divDLStart").getElementsByTagName(
- "a")[0].href;
- if (ilx_4slink){
- urlVar = lnk;
- urlp = ilx_uu + "video/" + ilx_vers + "/divx/4s/?k=" + ilx_convert(urlVar);
- ilx_openTab(ilx_url4s);
- }
- else {
- alert("Cannot get link");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement