RapidShare notifier

By Nemanja Avramović Last update Apr 19, 2007 — Installed 2,585 times.
// ==UserScript==
// @name           RapidShare notifier
// @namespace      http://www.avramovic.info/razno/gm/
// @description    This script will notify you when your waiting time on RS expires
// @include        http://*.rapidshare.com/*
// ==/UserScript==

var html = document.body.innerHTML;

var min = html.match(/\d{1,4} minutes/i);
var string = min[0];
var minuta = string.split(" ");

if (min) { 
 var vreme = minuta[0];
 var tajmaut = ((vreme * 1000) * 60) + 10000; //exact number of minutes plus 10 seconds
 alert('RAPIDSHARE NOTIFIER:\nYou will be notified of waiting time expiration in '+vreme+' minutes!');
 window.setTimeout(function() { alert('RAPIDSHARE NOTIFIER:\nWaiting time has expired, now you can try downloading file again!'); location.href = window.location; },tajmaut);
}