Rapidshare AutoWait

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

Error handling change

in
Subscribe to Error handling change 3 posts, 2 voices



David Bowser User
FirefoxWindows

The download page now has the following

Error: Please do not destroy our service. It is funded by Premium accounts, so please be fair and do not hide the Premium features and payment options. If we have to close the service, no one will benefit. Thank you.

File Download | Free User

I tested the following. Although it is not elegant, it seems to handle the new message

function isError() {
var err = "";
if (inhaltbox.getElementsByTagName("h1").length > 0) {
err = inhaltbox.getElementsByTagName("h1")[0].innerHTML; // content of the first H1 element in "inhaltbox" div
if (err.indexOf("Error: Please do not destroy our service") > -1) {
return false;
}
else if (err.indexOf("Error") > -1) {
return true;
}
else {
return true;
}
}
return false;
}

 
David Bowser User
FirefoxWindows

oops forgot to tag the code

Error: Please do not destroy our service. It is funded by Premium accounts, so please be fair and do not hide the Premium features and payment options. If we have to close the service, no one will benefit. Thank you.

File Download | Free User

and

	function isError() {
		var err = "";
		if (inhaltbox.getElementsByTagName("h1").length > 0) {
			err = inhaltbox.getElementsByTagName("h1")[0].innerHTML; // content of the first H1 element in "inhaltbox" div
			if (err.indexOf("Error: Please do not destroy our service") > -1) {
			  return false;
			}
      else if (err.indexOf("Error") > -1) {
				return true;
			}
			else {
        return true;
      }
		}
		return false;
	}

 
iampete Script's Author
FirefoxX11

Hi.. thanks for your help.. looks like rapidshare don't like me:-P

I have added an exception to the error handling function.. and after that I saw your post seeing you did it already;-) thanks.. i think rapidshare programmers will get tired sooner than us;-)

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