Rapidshare AutoWait

By iampete Last update Dec 19, 2009 — Installed 188,236 times.

wishlist

in
Subscribe to wishlist 13 posts, 6 voices



iampete Script's Author
FirefoxX11

Hi all..
I created this thread to mantain a list of bugs and feature requests for future versions of this script. If I accept your suggested functionality, I will add it to this first post. Then when I have time I will work on these features. You can discuss the existing list, suggest new features or talk about what is important to you when using this script. All ideas are welcome..

--PeTe

* bug: sometimes when two windows fire the download at the same time, only one of them gets downloaded, the other is stuct - the page doesn't reload after reaching 0 seconds (reported by multiple users) - suggestions are welcome, as I don't quite know how to resolve this
* optional auto-close tab feature (hashi)
* have the script wait as many minutes as are left to refresh instead of refreshing every minute.
* add detection of network error "The connection was reset"
* find out if it is possible to pre-select the prefered server to download from
* create separate script to hide the ads
* test on rapidshare.de

 
LeandroJF Scriptwright
FirefoxWindows

hi, first of all, tks for the script

About the bug, maybe setting some greasemonkey variable to inform the other tabs that a download has just began and to wait a bit before submiting the form can solve the problem.

Edit:
forget what I said, I'm seeing that you're using the "location hack" way. gm functions cant be acessed inside this.

 
RED_FOX86 User
FirefoxWindows

Well I signed up just to ask you to add auto-close tab but I see it has already been suggested before, so I guess I'll just second that request. Also maybe you could add the change posted by simon to have the script wait as many minutes as are left to refresh instead of refreshing every minute.
Also thanks for the script. I almost went crazy when it stopped working a couple of days ago and had to click on everything myself.

 
teknoallah423 User
FirefoxWindows

first off love what you have done here iampete.

was wondering if there was a way to add scripting that would deal with connection reset errors that seem to happen often for me. if this did not happen to me in the night i would make a lot more progress. is anyone else having this issue?

did a lil skimming through source code and see you put in a way to handle this but i think i get an error not listed that and am not sure what i could use to edit script for own needs, i see connection interrupted, but i seem to get connection has been reset often.

EDIT
"The connection was reset" that is what the main text on that page says during form submission

 
Kodak User
FirefoxWindows

teknoallah423: do you mean connection problems during already started download or just during forms submission?

 
RED_FOX86 User
FirefoxWindows

My connection also gets disconnected and reconnects very often, so it would be great if you could have the script refresh the page if the page fails to load.

 
Kodak User
FirefoxWindows

How about this (https://addons.mozilla.org/en-US/firefox/addon/...) TryAgain addon then? It should auto-reload a page when connection is broken. I would rather investigate first why connections are broken...

 
Kodak User
FirefoxWindows

iampete: i got working solution for autoclose
1st condition: http://stackoverflow.com/questions/330337/how-d...
2nd condition: submitDownloadForm function change to
window.submitDownloadForm = function() {
window.setTimeout("document.dlf.submit();window.setTimeout('window.close()', 4000);", 4000);
}

 
Kodak User
FirefoxWindows

However it will be more elegant to use a flag and split command into two:

autoClose = true;

window.submitDownloadForm = function() {
window.setTimeout("document.dlf.submit();", 4000);
if (autoClose) window.setTimeout("window.close();", 8000);
}

 
Kodak User
FirefoxWindows

And to wait exactly the time needed (i do not like using globals but it require more changes to not do it):

secondsToGo = repeatTimeout;
...
case (errorText.search(/You have reached the download limit for free-users/g) > -1):
secondsToGo = (errorText.match(/try again in about (\d+) minute/)) ? 60 * RegExp.$1 : repeatTimeout;
return "wait";
...
case "wait":
w = secondsToGo;
break;
...

full code (changed) is here http://www.wklej.eu/index.php?id=bd4a8e6285

 
her34 User
FirefoxWindows

Kodak,

Thank you for the wait exact time feature.

I hope this gets added into official version soon.

But could it be improved so that instead of displaying "800s" it shows minutes "13m 20s - Waiting..."

 
Kodak User
FirefoxWindows

here http://www.wklej.eu/index.php?id=03d60d5329 you are
you can choose duration format you like by setting proper durationFormat variable (i'm prefering 0:00)

 
her34 User
FirefoxWindows

Kodak, thank you for update

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