reCAPTCHA ShortLink Clicker

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

Från och med 2018-04-21. Se den senaste versionen.

// ==UserScript==
// @name            reCAPTCHA ShortLink Clicker
// @name:ja         reCAPTCHAのShortLinkボタンを自動クリック
// @namespace       http://fdjaosfijoasfsaf/
// @version         2.0
// @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){
        var count = 0;
        var target1 = $('input[name="_Token[_method]"]');
        var target2 = $('input[name="_Token[_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++;
        };

        setInterval(test, 2000);

        function test(){
            if(count == 4){
                console.info("exec");
                document.getElementById("invisibleCaptchaShortlink").click();
                count++;
            };
        };
    }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);
    };
})();