RapidShare Helper

By Valtzu Last update Nov 19, 2008 — Installed 8,672 times.

curently downloading a file / you have to wait

in
Subscribe to curently downloading a file / you have to wait 1 post, 1 voice

pidi User

Hi,

you have done great work!

I have a idea how to slightly extend your code. It's about to handle these two events:
- curently downloading a file
Set the timer for X minutes and then try to reload
- you have to X wait minutes
Read, how long do you have to wait a then do a reload

I'm not good at JavaScript so I was not able to integrate these ideas to your code. Just prepared a code which detects a string in some tag.

if (getElementWithText('p', /is already downloading a file/))
{
//timer X minutes, then reload
}

if (getElementWithText('p', /You have reached the download limit for free-users/))
{
//read timer, then reload
}

function getElementWithText(tag, RegExpr)
{
elements = document.getElementsByTagName(tag);
for(i = 0; i < elements.length; i++){
if (elements[i].innerHTML.search(RegExpr)>=0)
return true;
}
return false;

}

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel