Captcha Solver for NitroType/NitroMath

Finds and solves captchas if botting and solves them.

  1. // ==UserScript==
  2. // @name Captcha Solver for NitroType/NitroMath
  3. // @namespace https://singdev.wixsite.com/sing-developments
  4. // @version 0.1
  5. // @description Finds and solves captchas if botting and solves them.
  6. // @author You
  7. // @match https://www.nitrotype.com/*
  8. // @match https://www.nitromath.com/*
  9. // @grant GM_xmlhttpRequest
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. // Your CaptchaAI API key
  16. const captchaApiKey = '96004159c29dec0535a846099332d4d2';
  17.  
  18. // Function to find and solve captcha
  19. function solveCaptcha() {
  20. // Replace the following with your actual logic to find the captcha element
  21. const captchaElement = document.getElementById('captcha'); // Replace 'captcha' with the actual ID or selector
  22.  
  23. if (captchaElement) {
  24. // Replace the following with your actual logic to extract captcha data
  25. const captchaData = captchaElement.getAttribute('data-captcha'); // Replace 'data-captcha' with the actual attribute
  26.  
  27. // Make a request to CaptchaAI API
  28. GM_xmlhttpRequest({
  29. method: 'POST',
  30. url: 'https://ocr.captchaai.com/in.php',
  31. data: `key=${captchaApiKey}&captchaData=${captchaData}`, // Adjust parameters as needed
  32. headers: {
  33. 'Content-Type': 'application/x-www-form-urlencoded',
  34. },
  35. onload: function(response) {
  36. // Handle the API response and extract the captcha solution
  37. const captchaSolution = '...'; // Extract from the response
  38.  
  39. // Replace the following with your actual logic to fill in the captcha
  40. captchaElement.value = captchaSolution;
  41.  
  42. // After solving the captcha, you might want to submit the form or perform other actions
  43. // Replace the following with your actual logic
  44. const formElement = captchaElement.closest('form');
  45. if (formElement) {
  46. formElement.submit();
  47. }
  48. },
  49. });
  50. } else {
  51. console.log('Captcha element not found.');
  52. }
  53. }
  54.  
  55. // Trigger the captcha-solving function
  56. solveCaptcha();
  57.  
  58. })();