pootz / File Boom Auto-Download after Captcha

// ==UserScript==
// @name        File Boom Auto-Download after Captcha
// @namespace   pootz
// @description Auto-Download the file after the 30 seconds count
// @include     http://fboom.me/file/*
// @include     https://fboom.me/file/*
// @require     http://code.jquery.com/jquery.js
// @require     https://gist.github.com/raw/2625891/waitForKeyElements.js
// @updateURL   https://openuserjs.org/meta/pootz/File_Boom_Auto-Download_after_Captcha.meta.js
// @downloadURL https://openuserjs.org/install/pootz/File_Boom_Auto-Download_after_Captcha.user.js
// @version     1.4
// @history 	1.4 update urls
// @history     1.3 updated update url
// @history     1.2 minor fix
// @history     1.1 auto click free download and focus captcha
// @grant       GM_addStyle
// ==/UserScript==


var free = document.getElementById("download-free");
free.click();

waitForKeyElements("#CaptchaForm_code", focus);
waitForKeyElements("#temp-link", download);

function focus(node) {
    node.focus();
}

function download () {
		var link = $(".color-green").prop("href");
		location.replace(link);
}