Duo Security 自动推送

自动按下 "Send Me a Push"

目前为 2023-09-01 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Duo Security Auto Push
  3. // @name:en Duo Security Auto Push
  4. // @name:zh-CN Duo Security 自动推送
  5. // @name:zh-TW Duo Security 自動推送
  6. // @namespace pionxzh
  7. // @version 1.0.2
  8. // @author pionxzh
  9. // @description Press "Send Me a Push" automatically for you
  10. // @description:en Press "Send Me a Push" automatically for you
  11. // @description:zh-CN 自动按下 "Send Me a Push"
  12. // @description:zh-TW 自動按下 "Send Me a Push"
  13. // @license MIT
  14. // @icon https://www.google.com/s2/favicons?sz=64&domain=duosecurity.com
  15. // @match https://*.duosecurity.com/frame/prompt?sid=*
  16. // @match https://*.duosecurity.com/frame/web/v1/auth?
  17. // ==/UserScript==
  18.  
  19. (function () {
  20. 'use strict';
  21.  
  22. function onloadSafe(fn) {
  23. if (document.readyState === "complete") {
  24. fn();
  25. } else {
  26. window.addEventListener("load", fn);
  27. }
  28. }
  29. onloadSafe(() => {
  30. const authButton = document.querySelector(".push-label button.auth-button");
  31. if (authButton)
  32. authButton.click();
  33. });
  34.  
  35. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址