Recaptcha Helper

This automatically clicks on any recaptcha on the webpage and submits it directly after you solved it

当前为 2016-04-06 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Recaptcha Helper
  3. // @namespace Royalgamer06
  4. // @version 0.2
  5. // @description This automatically clicks on any recaptcha on the webpage and submits it directly after you solved it
  6. // @author Royalgamer06
  7. // @include *
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. if (location.href.indexOf('google.com/recaptcha') > -1) {
  12. var captcha = setInterval(function() {
  13. if (document.querySelectorAll('.recaptcha-checkbox-checkmark').length > 0) {
  14. clearInterval(captcha);
  15. document.querySelector('.recaptcha-checkbox-checkmark').click();
  16. }
  17. }, 100);
  18. } else {
  19. var forms = document.forms;
  20. var rc_form = '';
  21.  
  22. for (var i = 0; i < forms.length; i++) {
  23. if (forms[i].innerHTML.indexOf('google.com/recaptcha') > -1) {
  24. rc_form = forms[i];
  25. }
  26. }
  27.  
  28. var inv = setInterval(function() {
  29. if (grecaptcha.getResponse().length > 0) {
  30. clearInterval(inv);
  31. rc_form.submit();
  32. }
  33. }, 100);
  34. }