DelugeRPG S-BattlerV3 (WITH WORKING REPEAT BUTTON!!)

I fixed Monarc4YT's code.

  1. // ==UserScript==
  2. // @license MIT
  3. // @name DelugeRPG S-BattlerV3 (WITH WORKING REPEAT BUTTON!!)
  4. // @match https://www.delugerpg.com/battle/user*
  5. // @version 3.2
  6. // @description I fixed Monarc4YT's code.
  7. // @author Calcite
  8. // @grant none
  9. // @namespace https://greasyfork.org/en/users/1260021
  10. // ==/UserScript==
  11.  
  12.  
  13. setInterval(()=>{
  14. if(document.querySelector(".modal-open") == null){
  15. document.querySelector("#attack > div.cardif > form > div.buttoncenter > input:nth-child(1)")?.click()
  16. }
  17. }, 450);
  18.  
  19. setInterval(() => {
  20. document.querySelector("#battle > form > div.center > input:nth-child(1)").click();
  21. }, 450);
  22.  
  23. document.querySelector("#battle > div.notify_done > a:nth-child(5)").click();
  24.  
  25.  
  26. //↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑If it gets stuck, delete this code↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑//
  27.  
  28. //↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓Use this if it's getting stuck in the end↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓//
  29.  
  30. //setInterval(() => {
  31. //document.querySelector("#battle > div.notify_done > a.btn.btn-primary").click();
  32. //}, 450);