Greasy Fork is available in English.

Autopass Cloudflare CAPTCHA in iFrame

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

  1. // ==UserScript==
  2. // @name Autopass Cloudflare CAPTCHA in iFrame
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-03-09
  5. // @description 自动点击“验证您是真人”
  6. // @author NWater
  7. // @match https://challenges.cloudflare.com/cdn-cgi/challenge-platform/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=pqjc.site
  9. // @grant none
  10. // @require https://greasyfork.org/scripts/464929-module-jquery-xiaoying/code/module_jquery_XiaoYing.js
  11. // @require https://greasyfork.org/scripts/464780-global-module/code/global_module.js
  12. // ==/UserScript==
  13.  
  14. // Thanks to https://greasyfork.org/scripts/464785-autopass-cloudflare-captcha/code
  15.  
  16. async function main() {
  17. 'use strict';
  18. const global_module = window['global_module'];
  19.  
  20. let dom = await global_module.waitForElement("input[type='checkbox']", null, null, 200, -1);
  21. global_module.clickElement($(dom).eq(0)[0]);
  22. dom = await global_module.waitForElement("span[class='mark']", null, null, 200, -1);
  23. global_module.clickElement($(dom).eq(0)[0]);
  24. }
  25.  
  26. $(document).ready(() => main());