reCAPTCHA Helper

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

当前为 2016-05-29 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name reCAPTCHA Helper
  3. // @version 0.4
  4. // @description This automatically clicks on any recaptcha on the webpage and submits it directly after you solved it
  5. // @author Royalgamer06 & Tackyou
  6. // @include *
  7. // @grant none
  8. // @namespace https://greasyfork.org/scripts/18449-recaptcha-form-autosubmit/
  9. // ==/UserScript==
  10.  
  11. var domain = (window.location != window.parent.location) ? document.referrer.toString() : document.location.toString();
  12. if (domain.indexOf('miped.ru') == -1 && domain.indexOf('indiegala') == -1 && domain.indexOf('gleam.io') == -1) { //You can exclude domains here (advanced)
  13. if (location.href.indexOf('google.com/recaptcha') > -1) {
  14. var clickCheck = setInterval(function() {
  15. if (document.querySelectorAll('.recaptcha-checkbox-checkmark').length > 0) {
  16. clearInterval(clickCheck);
  17. document.querySelector('.recaptcha-checkbox-checkmark').click();
  18. }
  19. }, 100);
  20. } else {
  21. var forms = document.forms;
  22. for (var i = 0; i < forms.length; i++) {
  23. if (forms[i].innerHTML.indexOf('google.com/recaptcha') > -1) {
  24. var rc_form = forms[i];
  25. var solveCheck = setInterval(function() {
  26. if (grecaptcha.getResponse().length > 0) {
  27. clearInterval(solveCheck);
  28. rc_form.submit();
  29. }
  30. }, 100);
  31. }
  32. }
  33. }
  34. }