[Premium] Viefaucet Captcha Helper

Cannot solve the Picture but helps by the other clicks

目前為 2024-10-02 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         [Premium] Viefaucet Captcha Helper
// @namespace    https://greasyfork.org/users/1162863
// @version      1.3
// @description  Cannot solve the Picture but helps by the other clicks
// @author       Andrewblood
// @icon         https://coinfinity.top/favicon.ico
// @match        *://*.viefaucet.com/*
// @grant        window.focus
// @license      Copyright Andrewblood
// ==/UserScript==

(function() {
    'use strict';

        function VieCaptcha() {
            const targetElementSelector = '.check-box';
            const targetElement = document.querySelector(targetElementSelector);
            if (targetElement) {
                window.focus();
                console.log('Captcha Helper: Captcha found please click the picture.')
                targetElement.click();
            }
            const dotElement = document.querySelector('div.dot');
            if (dotElement) {
                const buttons = document.querySelectorAll('button');
                buttons.forEach(button => {
                    if (button.textContent.includes('Verify')) {
                        button.click();
                    }
                });
            }
        }
        setInterval(VieCaptcha, 1000);
    

})();