dropz others

try

目前為 2024-12-17 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         dropz others
// @namespace    http://tampermonkey.net/
// @version      2024-12-17-000001
// @description  try
// @author       You
// @match        https://raketayo.dropz.xyz/member/t/captcha
// @match        https://raketayo.dropz.xyz/member/t/browser
// @match        https://googleads.g.doubleclick.net/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @license MIT
// ==/UserScript==

( function() {
    'use strict';

    // Your code here...


    setInterval(()=>{
        clickOther();
    },200);

})();

var lastSubmit = new Date();
function clickOther(){
    clickButton(".swal2-confirm");
    let captchaText = document.getElementById('captchaText');
    if(captchaText){
        if(captchaText.value.length == 6){
            let d1 = new Date();
            let diff = d1 - lastSubmit;
            if(diff > 6 * 1000) {
                clickButton('.btn-success');
                lastSubmit = new Date();
            }
        }else if(captchaText.value.length ==0){
            //captchaText.click();
            captchaText.dispatchEvent(new Event('input'));
        }
captchaText.scrollIntoView();
    }

}
function clickButton(xpath){
    var targetNode = document.querySelector(xpath);
    if (targetNode) {
        targetNode.click();

    }
    else{

    }
}