Auto clicker for urle.co +

Bypass clicking continue button after reCAPTCHA

当前为 2017-07-14 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name            Auto clicker for urle.co +
// @name:ja         urle.co(+α)で楽をするためのスクリプト
// @namespace       http://hogehoge/
// @version         1.8.0
// @description     Bypass clicking continue button after reCAPTCHA
// @description:ja  urle.coとかでreCAPTCHA解決後に"continue"を自動でクリックします
// @author          H. Amami
// @include         *://urle.co/*
// @include         *://tmearn.com/*
// @include         *://u2s.io/*
// @include         *://adshorte.com/*
// @include         *://coshurl.co/*
// @include         *://linkfly.gaosmedia.com/*
// @include         *://coshurl.co/*
// @include         *://elde.me/*
// @include         *://clik.pw/*
// @include         *://zipfile.co/*
// @grant           none
// @run-at          document-end
// ==/UserScript==

if (~location.href.indexOf("adshorte.com/")) {
    var iframes = document.getElementsByTagName('iframe');
    for (var iframe of iframes) {
        if (~iframe.src.indexOf("dailymotion")) {
            iframe.parentNode.removeChild(iframe);
        }
    }
}

captchaCheckAdblockUser = checkAdblockUser = function() {};

bannerHiddenDivs = function() {
    return false;
};


if (document.getElementById("link-view") !== null) {
    var a = function() {
        if (grecaptcha.getResponse(0) !== "") {
            document.getElementById("link-view").submit();
            clearInterval(b);
        }
    };
    var b = setInterval(a, 500);
}

if (document.getElementById("go-link") !== null) {
    var goForm = $("#go-link");
    var submitButton = goForm.find('button');
    $.ajax({
        dataType: 'json',
        type: 'POST',
        url: goForm.attr('action'),
        data: goForm.serialize(),
        success: function(result, status, xhr) {
            if (result.url) {
                location.href = result.url;
            } else {
                console.info(result.message);
            }
        },
        error: function(xhr, status, error) {
            console.log("An error occured: " + xhr.status + " " + xhr.statusText);
        },
        complete: function(xhr, status) {}
    });
}