Megaupload sin esperas

By DJMeu Last update May 17, 2009 — Installed 2,896 times. Daily Installs: 23, 22, 12, 14, 13, 14, 8, 18, 14, 15, 10, 18, 15, 9, 15, 4, 4, 21, 25, 25, 20, 23, 13, 10, 9, 6, 11, 10, 10, 9, 1, 1

There are 1 previous version of this script.

// ==UserScript==
// @name           Megaupload sin esperas
// @version        1.1
// @namespace      DJMeu
// @description    Megaupload sin esperas
// @include        http://megaupload.com/*
// @include        http://www.megaupload.com/*
// ==/UserScript==

version='1.1';
scripturl='http://userscripts.org/scripts/source/49360.user.js';
scripturl2='http://userscripts.org/scripts/show/49360';
scriptname="Megaupload sin esperas";

//-------------------------------------------------------------------------------------------//

GM_registerMenuCommand(scriptname+ ': Buscar actualizaciones', update);
GM_registerMenuCommand(scriptname+ ': Visitar la p\u00e1gina del script', scriptpage);
function update(evt)
{
	GM_xmlhttpRequest({
		method: 'GET',
		url: 'http://userscripts.org/scripts/source/49360.meta.js',
		onload: function(resp) {
			resp.responseText.match(/@version\s+([\d.]+)/);
			updatedversion = RegExp.$1;
			if (version == updatedversion) {
				alert('Tienes la \u00faltima actualizaci\u00f3n disponible (v' +version+ ')')
			} else {
				if (confirm("Se ha encontrado una nueva versi\u00f3n (v" +updatedversion+ "). Desea actualizar?")) {
					document.location.href = scripturl
				}
			}
		}
	});
}

function scriptpage(evt)
{
	document.location.href = scripturl2
}

//-------------------------------------------------------------------------------------------//

document.getElementById('downloadlink').style.display = '';
document.getElementById('downloadcounter').style.display = 'none';
window.location.href = document.getElementById('downloadlink').firstChild.href;