reCAPTCHA ShortLink Clicker

This script is not resolver, only can click. Currently wi.cr,short.pe.

当前为 2018-04-23 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name            reCAPTCHA ShortLink Clicker
// @name:ja         reCAPTCHAのShortLinkボタンを自動クリック
// @namespace       http://fdjaosfijoasfsaf/
// @version         2.1
// @description     This script is not resolver, only can click. Currently wi.cr,short.pe.
// @description:ja  現在wi.crとshort.peのみ動作
// @author          plgdown
// @include         *://wi.cr/*
// @include         *://short.pe/*
// @require         https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js
// @grant           none
// @run-at          document-end
// ==/UserScript==

(function() {
    'use strict';
    if(location.href.indexOf("://wi.cr/") !== -1 && document.getElementById("link-view") !== null){
        var count = 0;
        var target1 = $('input[name="_method"]');
        var target2 = $('input[name="_csrfToken"]');
        var target3 = $('input[name="_Token[fields]"]');
        var target4 = $('input[name="_Token[unlocked]"]');

        target1.ready(inc);
        target2.ready(inc);
        target3.ready(inc);
        target4.ready(inc);

        function inc(){
            count++;
        };

        var inter = function test(){
            if(count == 4){
                clearInterval(inter);
                console.info("exec");
                document.getElementById("invisibleCaptchaShortlink").click();
                count++;
            };
        };
        setInterval(inter, 2000);
    }else if(location.href.indexOf("://short.pe/") !== -1){
        var target_shortpe = $("button").attr("disabled");
        setInterval(function(){
         if(typeof $("button").attr("disabled") == 'undefined'){
             console.info("exec");
            document.getElementById("invisibleCaptchaShortlink").click();
         };
        },2000);
    };
})();