actiontab atteck

atteck actiontab

  1. // ==UserScript==
  2. // @name actiontab atteck
  3. // @description atteck actiontab
  4. // @icon https://img1.baidu.com/it/u=1412332306,99938487&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500
  5. // @license MIT
  6. // @version 0.0.1
  7. // @author node_modules
  8. // @run-at document-end
  9. // @include http*://*
  10. // @namespace a.b.c.d
  11. // ==/UserScript==
  12.  
  13. let list = [
  14. 'https://actiontab.cn/assets/peitu4-3.png',
  15. 'https://actiontab.cn/assets/peitu4-2.png',
  16. ]
  17. let count = 0
  18. function loop(){
  19. let idx = count%2
  20. fetch(list[idx]).then(res=>{
  21. if(res.status==200) {
  22. count++
  23. if(count%100==0){
  24. console.log(`第${count}次攻击`);
  25. document.querySelector('.header').innerHTML = `第${count}次攻击`;
  26. }
  27. loop()
  28. } else {
  29. setTimeout(loop,60*1000)
  30. }
  31. })
  32. }
  33. loop()