Rapidshare Flukke's autodownloader

By flukke Last update Jul 22, 2008 — Installed 5,439 times. Daily Installs: 11, 11, 7, 12, 7, 11, 10, 6, 10, 11, 9, 10, 17, 20, 12, 6, 10, 12, 12, 6, 12, 3, 18, 9, 7, 12, 12, 11, 2, 6, 2, 10
// ==UserScript==

// @name           Rapidshare Flukke's autodownloader
// @description    based on the "Rapidshare - Timer" of dob (http://userscripts.org/scripts/show/27821), this script press "free user", wait for download link, and auto click em. the only think you should do is paste the link in the address bar and wait ;D
// @include        http://*.rapidshare.com/*

// @include        http://*.rapidshare.tld/*

// @include        http://rapidshare.tld/*

// @include        http://lix.in/*

// @include        http://*.rapidsafe.net/*

// @include        http://rapidsafe.net/*

// @exclude        http://rapidshare.tld/users/*

// ==/UserScript==

 

GM_addStyle("#counter { position: fixed; width: 60px; top: 0; left: 0; border: 3px solid #999; padding: 2px 5px; font-size: 12pt;}");

// hide stuff

GM_addStyle("p.downloadlink, div#dl h2, div#dl p, table.klapp { display: none; }");

var free = document.getElementById("ff");
if(free)
   free.childNodes[7].click();


setTimeout(function() {

	var x = unsafeWindow.c;

	unsafeWindow.c = 2;

	var div = document.createElement("div");

	with (div) {

		id = "counter",

		innerHTML = (x/60).toFixed(1);

	}

	document.body.appendChild(div);

	var rs = function() {

		var timer = window.setInterval(function() {

			x--;

			document.getElementById("counter").innerHTML = x;

			if (x == 0) {

				//alert("Download ready!");

				clearInterval(timer);
				// click en el elemento...
				var link = document.getElementById("dl");
				var X = link.childNodes[0].childNodes[2].childNodes[0];
				X.click();

			}

		}, 1000);

	}

	rs();

}, 500);