1ink.cc Auto Skip and Captcha Submit

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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);
    });

})();