IntCyoaAutosaver

Autosaver for IntCyoaCreator

当前为 2024-03-28 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name IntCyoaAutosaver
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Autosaver for IntCyoaCreator
  6. // @author Name0930
  7. // @match https://intcyoacreator.onrender.com/
  8. // @icon https://intcyoacreator.onrender.com/favicon.ico?
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. const minutes = 10
  17.  
  18. window.setInterval(function() {
  19. var save = document.querySelector("#app > div > div > nav > div.v-navigation-drawer__content > div > div:nth-child(1) > div:nth-child(7)")
  20.  
  21. if (save) {
  22. save.click()
  23. setTimeout(function(){
  24. var button = document.querySelector("#app > div.v-dialog__content.v-dialog__content--active > div > div > div.v-card__text > div > div > div:nth-child(2) > button > span")
  25. var goback = document.querySelector("#app > div.v-dialog__content.v-dialog__content--active > div > div > div.v-card__actions > button > span")
  26.  
  27. if (button) {
  28. button.click()
  29. setTimeout(function(){goback.click()}, 5)
  30. }
  31. }, 5)
  32. }
  33. }, minutes*60000);
  34. })();