reCAPTCHA Helper

This automatically clicks or executes on any recaptcha on the webpage and submits its form directly after you solved it

目前為 2018-01-06 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name reCAPTCHA Helper
  3. // @version 1.0.0
  4. // @description This automatically clicks or executes on any recaptcha on the webpage and submits its form directly after you solved it
  5. // @author Royalgamer06
  6. // @include *
  7. // @grant none
  8. // @run-at document-start
  9. // @namespace https://greasyfork.org/scripts/18449-recaptcha-form-autosubmit/
  10. // ==/UserScript==
  11.  
  12. // ==Configuration==
  13. const blacklistedUrls = ["miped.ru", "www.indiegala", "https://gleam.io/"];
  14. // ==/Configuration==
  15.  
  16. // ==Code==
  17. var url = window.location !== window.parent.location ? document.referrer : document.location.href;
  18. if (!isBlackListed(url)) {
  19. if (location.href.includes("google.com/recaptcha")) {
  20. var clickCheck = setInterval(function() {
  21. if (document.querySelectorAll(".recaptcha-checkbox-checkmark").length > 0) {
  22. clearInterval(clickCheck);
  23. document.querySelector(".recaptcha-checkbox-checkmark").click();
  24. }
  25. }, 100);
  26. } else {
  27. window.onload = readyToHelp;
  28. }
  29. }
  30.  
  31. function readyToHelp() {
  32. try {
  33. grecaptcha.execute();
  34. } catch(e) {}
  35. document.forms.forEach(form => {
  36. if (form.innerHTML.includes("google.com/recaptcha")) {
  37. var solveCheck = setInterval(function() {
  38. if (grecaptcha.getResponse().length > 0) {
  39. clearInterval(solveCheck);
  40. form.submit();
  41. }
  42. }, 100);
  43. }
  44. });
  45. }
  46.  
  47. function isBlackListed(url) {
  48. return blacklistedUrls.filter(bu => url.includes(bu)).length > 0;
  49. }
  50. // ==/Code==