🧩 How I Outsmarted the Annoying "I'm Not a Robot" Checkbox (with Tampermonkey + 2Captcha)

 


https://2captcha.com/h/how-to-bypass-captcha-using-tampermonkey

So… you’re just trying to do a thing on the internet, and boom — up pops the infamous "Click all the pictures with traffic lights". You squint. You click. You wonder: Is the pole part of the traffic light? You fail. You click again. Congratulations, you’re now officially more frustrated than a printer in 2003.

Good news: There’s a way out. It’s called Tampermonkey + 2Captcha, and it basically tells the captcha gods, “Not today.”


🧠 What You Need (a.k.a. the Holy Toolkit)

  • A browser (unless you're reading this on a toaster)

  • Tampermonkey – the extension that lets you bend websites to your will

  • A 2Captcha account — yes, they solve captchas for a living (no joke)

  • Your 2Captcha API key

  • Some idea of what JavaScript is (or the bravery to paste things blindly and hope for the best)


🛠️ The Setup (a.k.a. Wizardry for the Lazy)

  1. Install Tampermonkey. Yes, really.

  2. Click “Create a new script” in its dashboard.

  3. Delete the junk it puts there by default (it’s not offended).

  4. Paste in the magical code below.

  5. Put your actual 2Captcha API key where it says 'YOUR_2CAPTCHA_API_KEY'.

  6. Save. Reload your target page. Lean back and enjoy the automation.


🎯 The Magic Script That Says “I’m Definitely Not a Robot”

// ==UserScript==
// @name         Auto reCAPTCHA v2 Solver (Because I'm Lazy)
// @namespace    https://nobot.zone/
// @version      1.0
// @description  Outsmart captchas using 2Captcha and pure browser power
// @match        *://*/*
// @grant        none
// ==/UserScript==

(async function () {
  const API_KEY = 'YOUR_2CAPTCHA_API_KEY';
  const sleep = ms => new Promise(r => setTimeout(r, ms));

  const recaptcha = document.querySelector('.g-recaptcha[data-sitekey]');
  if (!recaptcha) return;

  const sitekey = recaptcha.getAttribute('data-sitekey');
  const pageUrl = location.href;

  const createTask = async () => {
    const res = await fetch('https://api.2captcha.com/createTask', {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({
        clientKey: API_KEY,
        task: {
          type: 'RecaptchaV2TaskProxyless',
          websiteURL: pageUrl,
          websiteKey: sitekey
        }
      })
    });
    const json = await res.json();
    if (json.errorId !== 0) throw new Error(json.errorDescription);
    return json.taskId;
  };

  const getToken = async (taskId) => {
    for (let i = 0; i < 24; i++) {
      await sleep(5000); // patience is a virtue
      const res = await fetch('https://api.2captcha.com/getTaskResult', {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify({ clientKey: API_KEY, taskId })
      });
      const json = await res.json();
      if (json.status === 'ready') return json.solution.gRecaptchaResponse;
    }
    throw new Error("2Captcha took a nap. Try again.");
  };

  const token = await getToken(await createTask());

  let responseField = document.querySelector('[name="g-recaptcha-response"]');
  if (!responseField) {
    responseField = document.createElement('textarea');
    responseField.name = 'g-recaptcha-response';
    responseField.style.display = 'none';
    document.body.appendChild(responseField);
  }
  responseField.value = token;

  const form = recaptcha.closest('form');
  if (form) form.submit(); // goodbye captcha
})();

🧃 Pro Tips (a.k.a. Stuff I Learned the Hard Way)

  • Make sure the captcha box actually loads before the script runs. No ghost boxes, please.

  • If the form doesn’t submit automatically, some sites want you to click something (rude).

  • Your API key must be real. Fake keys don’t solve captchas — shocking, I know.

  • If nothing happens, open your browser console (F12) and see what broke. It’s probably your fault. 😅

  • Your 2Captcha balance should be greater than $0. Trust me, they don’t work for free.


🏁 Final Words (Before You Go Conquer the Web)

This script has saved me countless hours and many brain cells. It’s not bulletproof, but it’s like having a robot intern do the boring checkbox stuff while you focus on actual work — or memes.

Want to solve invisible captchas, hCaptcha, or summon dark proxy powers? Let me know, we can build the next evil genius toolkit together 😎

Комментарии

Популярные сообщения из этого блога

Roblox captcha solver

How to Bypass reCAPTCHA v2 Using Tampermonkey and 2Captcha API

Bypassing Cloudflare Challenge with Puppeteer and 2Captcha