Autopass Cloudflare CAPTCHA in iFrame

自动点击“验证您是真人”

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         Autopass Cloudflare CAPTCHA in iFrame
// @namespace    http://tampermonkey.net/
// @version      2024-03-09
// @description  自动点击“验证您是真人”
// @author       NWater
// @match        https://challenges.cloudflare.com/cdn-cgi/challenge-platform/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=pqjc.site
// @grant        none
// @require     https://greatest.deepsurf.us/scripts/464929-module-jquery-xiaoying/code/module_jquery_XiaoYing.js
// @require     https://greatest.deepsurf.us/scripts/464780-global-module/code/global_module.js
// ==/UserScript==

// Thanks to https://greatest.deepsurf.us/scripts/464785-autopass-cloudflare-captcha/code

async function main() {
    'use strict';
    const global_module = window['global_module'];

    let dom = await global_module.waitForElement("input[type='checkbox']", null, null, 200, -1);
    global_module.clickElement($(dom).eq(0)[0]);
    dom = await global_module.waitForElement("span[class='mark']", null, null, 200, -1);
    global_module.clickElement($(dom).eq(0)[0]);
}

$(document).ready(() => main());