Check hCaptcha and click the button

Checks if the hCaptcha has been resolved and click the button

  1. // ==UserScript==
  2. // @name Check hCaptcha and click the button
  3. // @name:pt-BR Verificar hCaptcha e clicar no botão
  4. // @namespace https://seu-website.com
  5. // @version 1.0
  6. // @description Checks if the hCaptcha has been resolved and click the button
  7. // @description:pt-BR Verifica se o hCaptcha foi resolvido e clica no botão
  8. // @match http*://freebitco.in/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=freebitco.in
  10. // @grant none
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. function verificarhCaptcha() {
  16. if (typeof window.hcaptcha !== 'undefined') {
  17. if (window.hcaptcha.getResponse().length > 0) {
  18. var botao = document.getElementById('free_play_form_button');
  19. if (botao) {
  20. botao.click();
  21. }
  22. } else {
  23. setTimeout(verificarhCaptcha, 1000);
  24. }
  25. }
  26. }
  27. window.addEventListener('load', verificarhCaptcha);
  28. })();
  29.