Guest User

Untitled

a guest
May 14th, 2023
5,520
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. let batchSize = 100;
  2. function processBatch(startIndex) {
  3. let goldItems = document.querySelectorAll('.gold-item.ignore-pxtorem.五周年金幣.gold, .gold-item.ignore-pxtorem.cheems.token, .gold-item.ignore-pxtorem.four.token');
  4.  
  5. for (let i = startIndex; i < Math.min(startIndex + batchSize, goldItems.length); i++) {
  6. goldItems[i].click();
  7. }
  8.  
  9. if (startIndex + batchSize >= goldItems.length) {
  10. setTimeout(function() {
  11. processBatch(0);
  12. }, 10);
  13. } else {
  14. processBatch(startIndex + batchSize);
  15. }
  16. }
  17. processBatch(0);
Advertisement
Comments
  • vikarchuk
    3 years
    # text 0.21 KB | 0 0
    1. setInterval(() => {
    2. document.querySelectorAll('.gold-item.ignore-pxtorem.五周年金幣.gold, .gold-item.ignore-pxtorem.cheems.token, .gold-item.ignore-pxtorem.four.token').forEach(i => i.click())
    3. }, 1000)
Add Comment
Please, Sign In to add comment