1ink.cc Auto Skip and Captcha Submit

Automatically clicks Skip Ad, fills captcha, and submits on 1ink.cc

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         1ink.cc Auto Skip and Captcha Submit
// @namespace    http://tampermonkey.net/
// @version      1.2
// @description  Automatically clicks Skip Ad, fills captcha, and submits on 1ink.cc
// @author       PixelHash
// @license      MIT
// @match        https://1ink.cc/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Function to click the <a> containing the skip button
    function clickSkipAd() {
        const skipLink = document.querySelector('a#countingbtn');
        if (skipLink) {
            console.log('Clicking Skip Ad link...');
            skipLink.click();
        } else {
            console.log('Skip Ad link not found.');
        }
    }

    // Function to fill captcha input with 3 random numbers and click GO >>
    function fillCaptchaAndSubmit() {
        const captchaInput = document.querySelector('input[name="captcha"]');
        const submitButton = document.querySelector('input.button2[type="submit"]');

        if (captchaInput && submitButton) {
            // Generate 3 random digits
            const randomCaptcha = Math.floor(100 + Math.random() * 900); // ensures 3 digits
            captchaInput.value = randomCaptcha;
            console.log('Filled captcha with:', randomCaptcha);

            // Click GO >> after short delay to appear natural
            setTimeout(() => {
                submitButton.click();
                console.log('Submitted captcha.');
            }, 1000);
        } else {
            console.log('Captcha input or submit button not found.');
        }
    }

    // Wait for page load then run skip click
    window.addEventListener('load', () => {
        clickSkipAd();

        // Wait a few seconds for captcha page to load before filling and submitting
        setTimeout(fillCaptchaAndSubmit, 4000);
    });

})();