Submit for MB_Solver

Sending the form after solving the captcha

  1. // ==UserScript==
  2. // @name Submit for MB_Solver
  3. // @namespace Violentmonkey Scripts
  4. // @version 1.4
  5. // @description Sending the form after solving the captcha
  6. // @author MultiBot
  7. // @match *://*/*
  8. // @grant none
  9. // ==/UserScript==
  10. (function() {
  11. 'use strict';
  12. function _Search_Captcha(){
  13. let done_captcha = false;
  14. if (document.querySelector('input#antibotlinks') && !document.querySelector('input#antibotlinks').value){
  15. return false;
  16. }
  17. if (window.grecaptcha && window.grecaptcha.getResponse()){
  18. done_captcha = true;
  19. }
  20. if (typeof window.hcaptcha=="object" && window.hcaptcha.getResponse()){
  21. done_captcha = true;
  22. }
  23. if (typeof window.ACPuzzleInfo=="object" && document.querySelector("#adcopy_response").value){
  24. done_captcha = true;
  25. }
  26. if(done_captcha){
  27. return true;
  28. }
  29. }
  30. function _Search_Selector(query,action){
  31. if (document.querySelector(query)) {
  32. var timer = setInterval(function() {
  33. if (_Search_Captcha()) {
  34. document.querySelector(query)[action](); clearInterval(timer);
  35. }
  36. }, 5000);
  37. }
  38. }
  39. if(document.querySelector('span#clock')){
  40. var timer = setInterval(function() {
  41. if (Number(document.querySelector('span#clock').innerText.replace(/[^1-9]+/g,''))==0) {
  42. location.reload(); clearInterval(timer);
  43. }
  44. }, 5000);
  45. }
  46. let arr_modal = ['[data-target="#claim"]'];
  47. for(let key of arr_modal){
  48. if (document.querySelector(key)){
  49. document.querySelector(key).click();
  50. break;
  51. }
  52. }
  53. let arr_form = ['form[action*="/faucet/verify"]','form[action*="/firewall/verify"]','form[action*="/auth/login"]'];
  54. for(let key of arr_form){
  55. _Search_Selector(key,'submit');
  56. }
  57. let arr_click = ['.btn-success[type="submit"]'];
  58. for(let key of arr_click){
  59. _Search_Selector(key,'click');
  60. }
  61. })();