Rapidshare Automater

By aeosynth Last update Feb 23, 2009 — Installed 5,144 times. Daily Installs: 4, 6, 5, 12, 10, 6, 10, 7, 4, 4, 6, 9, 9, 4, 10, 2, 9, 9, 3, 9, 5, 4, 3, 9, 3, 6, 10, 5, 3, 10, 6, 7

There are 1 previous version of this script.

// ==UserScript==
// @name           Rapidshare Automater
// @namespace      aeosynth
// @description    Automates downloading for free users. Shows time remaining in tab title, or 'Error' if, say, you're attempting to download multiple files at once.
// @include        http://rapidshare.com/*
// @include        http://*.rapidshare.com/*
// ==/UserScript==

var button = document.getElementsByTagName('input')
if(button.length)
	button[1].click()
else{
	var dl = document.getElementById('dl')
	if(dl){
		var wait = dl.textContent.match(/\d+/)
		var title = window.setInterval(function(){testan(wait--)}, 1000)}
	else{
		var wait = document.getElementsByClassName('klappbox')[0].textContent.match(/\d+(?= minutes)/)
		if(wait){
			document.title = wait + ' minutes'
			window.setInterval(function(){waitan(--wait)}, 60000)}
		else
			document.title = 'Error'
		}}
	
function waitan(i){
	if(wait == 0)
		window.location.reload()
	document.title = i + ' minutes'
}
	
function testan(i){
	document.title = i
	if(i == 0){
		window.clearInterval(title)
		button = document.getElementById('dl').getElementsByTagName('input')
		button[button.length - 1].click()
		}}