Back to scripts

game

2024-03-21v1.0.0Community

Usage

Steps

  1. 進入遊戲界面
  2. 運行腳本
  3. 等待自動操作完成

Notes

  • 腳本會在30秒後自動停止
  • 可能會影響遊戲體驗
  • 使用時請注意遊戲規則

Requirements

  • 必須在遊戲界面中使用
  • 瀏覽器需要允許自動點擊

Code

function autoSpam() {
  const buttons = document.querySelectorAll('button');
  let spamInterval;
  
  function spam() {
    buttons.forEach(button => {
      if (button.textContent.toLowerCase().includes('click') || 
          button.textContent.toLowerCase().includes('spam')) {
        button.click();
      }
    });
  }
  
  spamInterval = setInterval(spam, 50);
  
  // Auto-stop after 30 seconds
  setTimeout(() => {
    clearInterval(spamInterval);
    alert('Auto spam completed!');
  }, 30000);
}

autoSpam();

Changelog

Version 1.0.0

2024-03-21
  • 初始版本發布
  • 添加自動點擊功能
  • 設置30秒自動停止機制