Greasy Fork is available in English.

reCaptcha Autoclick

Automatically click reCaptcha checkbox button when detected it and doesn't solve the captcha for you!

// ==UserScript==
// @name        reCaptcha Autoclick
// @namespace   https://tampermonkey.net/
// @version     1.3
// @description Automatically click reCaptcha checkbox button when detected it and doesn't solve the captcha for you!
// @author      Streampunk
// @icon        data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAADEtJREFUeF7lm3tsFMcdx2dmH7d350uMDGmCaRRSSCL+KAkuYFyaQJ5C1KUlqYtAqRIiUCvRByUhoSqFpCIPIERVQxEB+lDUP0IkoCYI8gBDmzgQSsyrFZUglUqDeBhiuLPXt3e7W/1mdvZm93bvdi8mAbEIYc6zs/P7/L6/3/xmZg+ja/zC17j9KBKAx/+QHXKjpAxCCYRQHiGTGOX3GQJK1flZ+CwfQrrnVE8xqalZq/d/udeWfqPvi3ZIJAAwqIefv3BcSSaHwc+2XXmYVsDvgz6DXs4e/hgpmUEISzKSCEaKjFFaI7l0StpJsPzihkWNXZcTSmQAIoRQANCbjVAcAGcO7kdETiAlU48wIch2OgeG8KMsYdSQkU/VpeTZ6xd9dfdAw4gFgEOQNaaEoAsG7RcANyao/ZmDHyEsKfSvkr4e8aAEELYvQjWV2EPr5Zc3LL7lVwMFIjaAahCCvA9QLMRsAxjiQzkAQmSEiITkdIbaZtredtxg6EuVMWpskBf9cfHwVz4viJoAVIIQKn9uvW/EFACREZEUhDBGNpGQkqrzhZFzs09dmbSUb2ggt/9p4fDTtYKoGcD8DfqyUxfRAvHB5cazgYclQLhXBGBjjCyCEYE/ybqyKSoo92CM0M0Nykt/Xjp8SS0QagIwb23/kXO99kg6I3BpB8Q+nzEqTRp+AAABxA9/pFSdxyabx5HzqSiqIdfLx95cduudUSDMXXpq8GtLh3ZD29gAZq/Wu3vziI1MGEGYl8O9jxHCNjrTVQoBMJ4CwBhhaqwXgl8B/qhKayS7beWIIZUgtD51/PhnOevB99fc9klsAI+9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gOgAQUwQ3Ht77LRSMrFEsvpvvz6+Y9si0K+eLk3GND2u/cePGZLKYTBdxkX71RrblnC7rvW1tbfpAPSNqP5clBKI+/Epod80D+D9j2qmMkS4BFwAAAABJRU5ErkJggg==
// @match       http://*/*
// @match       https://*/*
// @grant       none
// @license MIT
// ==/UserScript==

(function(){
    'use strict';
	
let isRecaptchaFrame_1 = () => {
  return /https:\/\/www.google.com\/recaptcha\/api2\/anchor/.test(window.location.href);
};

let isReCaptchaFrame_2 = () => {
  return /https:\/\/www.recaptcha.net\/recaptcha\/api/.test(window.location.href);
};

let captchaInterval_1 = setInterval(() => {
  if (isRecaptchaFrame_1()) {
    clearInterval(captchaInterval_1);
    document.getElementsByClassName('recaptcha-checkbox-checkmark')[0].click();
  }  
}, 500);

let captchaInterval_2 = setInterval(() => {
  if (isReCaptchaFrame_2()) {
    clearInterval(captchaInterval_2);
    document.querySelector(".recaptcha-checkbox-border").click();
  }  
}, 500);

})();