Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Megaupload download script

Name: Anonymous 2009-01-03 7:51

I'm trying to write a download shell script for megaupload (no-captca yet). It works and I get a download link but when I try to download it the server returns 404. I have tried copying the cookies from a firefox sesson so I don't think that's the problem. I'm using wget by the way.

Name: Anonymous 2009-01-03 7:53

Okay.

Name: Anonymous 2009-01-03 7:55

>>2
Fix it please

Name: Anonymous 2009-01-03 7:56

Fixed

Name: Anonymous 2009-01-03 8:03

>>4
Thank you it works now

Name: Anonymous 2009-01-03 10:06

>>4
DON'T HELP HIM

Name: Anonymous 2009-01-03 10:32

write a firefox script/plugin/whatever?

Name: Anonymous 2009-01-03 11:56

// ==UserScript==
// @name           Megaupload Helper
// @description    Removes everything except for the captcha box and starts download when timer reaches zero.
// @include        http://*.megaupload.com/*;
// @include       http://megaupload.com/*;
// ==/UserScript==
// Version 20080831

(function(){

loc=document.location.href;

// remove everything except for the captcha box
if ((loc.match(/^http:\/\/(www\.)?megaupload\.com\/(?:[a-z]+\/)?\?d=[0-9A-Z]+$/)) ||
    (loc.match(/^http:\/\/(www\.)?megaupload\.com\/(?:[a-z]+\/)?$/) && document.getElementById('imgstr'))){
    if (!document.forms[0]) return;
    html=document.forms[0].parentNode.parentNode.innerHTML;
    document.body.innerHTML=html;
    disableCss();
    document.getElementById('imgstr').focus();
    return;
}

// get rid of everything except for the countdown timer
if (loc.match(/^http:\/\/(www\.)?megaupload.com\/(?:[a-z]+\/)?$/)){
    if (!document.body.innerHTML.match(/onclick="loadingdownload\(\);">/)) return;
    time=document.body.innerHTML.match(/[0-9]=([0-9]+)/)[1];
    descriptor_divs=document.getElementById('bluebg').getElementsByTagName('div');
    name=descriptor_divs[0].innerHTML;
    size=descriptor_divs[1].innerHTML;
    description=descriptor_divs[2].innerHTML;
    document.body.innerHTML='<div align="center"><div id="downloadhtml"></div><div id="dlbutton"></div><br><div>'+name+'<br>'+size+'<br>'+description+'</div><div id="dlcounter">xxx</div><div id="dlcounterimg"></div></div>';
    disableCss();

    //comment out this line to remove automatic downloads
    setTimeout(clickDownload,(time*1+3)*1000);
}

    function clickDownload(){
    document.location.href=document.getElementById("dlbutton").firstChild.href;
    }

    function disableCss(){
    for (i=0;i<document.styleSheets.length;i++)
        document.styleSheets[i].disabled=true;
    }

})();

Name: Anonymous 2009-01-03 12:00

RIP and adblock is way faster
script doesn't even enlarge captcha image.

Name: Anonymous 2009-01-03 18:02

I read the source and compute the direct download URL myself. Manually.

Name: Anonymous 2009-01-04 0:37

>>10
but are you turning complete?

Name: Anonymous 2011-02-04 12:46

Don't change these.
Name: Email:
Entire Thread Thread List