you are viewing a single comment's thread.

view the rest of the comments →

[–]Jiminy 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (1 child)

Settle down chief

[–]smartypants 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

// ==UserScript== // @name Autopass Cloudflare CAPTCHA // @namespace Violentmonkey Scripts // @match https:/// // @version XiaoYing_2023.05.25.22 // @grant none // @run-at document-start // @author github.com @XiaoYingYo // @require https://greasyfork.org/scripts/464929-module-jquery-xiaoying/code/module_jquery_XiaoYing.js // @require https://greasyfork.org/scripts/464780-global-module/code/global_module.js // @icon https://www.google.com/s2/favicons?sz=48&domain=cloudflare.com // @icon64 https://www.google.com/s2/favicons?sz=64&domain=cloudflare.com // @description Violentmonkey Scripts // @downloadURL https://update.greasyfork.org/scripts/464785/Autopass%20Cloudflare%20CAPTCHA.user.js // @updateURL https://update.greasyfork.org/scripts/464785/Autopass%20Cloudflare%20CAPTCHA.meta.js // ==/UserScript==

//global_module = window['global_module'];

global_module = global['global_module'];

async function VerifyYouAreHuman_01() { let dom = await global_module.waitForElement("input[value='Verify you are human'][type='button']", null, null, 200, -1); global_module.clickElement($(dom).eq(0)[0]); }

async function VerifyYouAreHuman_02() { 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]); }

async function VerifyYouAreHuman_03() { let dom = await global_module.waitForElement("input[value='Verify you are human'][type='button']", null, null, 200, -1); global_module.clickElement($(dom).eq(0)[0]); }

async function main() { let ray_id = $("div[class='ray-id']"); let hrefdom = $("a[href*='cloudflare.com'][target='_blank']"); if (ray_id.length > 0 && hrefdom.length > 0) { VerifyYouAreHuman_01(); return; } if (window.location.host == 'challenges.cloudflare.com' && $("div[id='success']").length > 0 && $("div[id='fail']").length > 0 && $("div[id='expired']").length > 0) { VerifyYouAreHuman_02(); return; } if ($('div[class="logo"]').length > 0) { VerifyYouAreHuman_03(); return; } }

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