DALL·E mini Bruteforcer

Clicks the run button until success

目前為 2022-06-12 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name DALL·E mini Bruteforcer
  3. // @namespace HKR
  4. // @match https://hf.space/static/dalle-mini/dalle-mini/index.html
  5. // @match https://huggingface.co/spaces/dalle-mini/dalle-mini
  6. // @grant none
  7. // @version 1.0
  8. // @author HKR
  9. // @description Clicks the run button until success
  10. // ==/UserScript==
  11.  
  12. (() => {
  13. if(window.location.hostname == "hf.space") {
  14. const intervalMs = 5000;
  15.  
  16. window.alert = txt => {
  17. console.error(txt);
  18.  
  19. if(txt.includes("Too much traffic")) {
  20. console.warn(`\n\nWaiting ${intervalMs/1000} seconds and trying again...\n\n`);
  21.  
  22. setTimeout(() => document.querySelector(".self-start").click(), intervalMs);
  23. }
  24. }
  25. }
  26. })();

QingJ © 2025

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