---
# System prepended metadata

title: JS點擊腳本
tags: [小工具]

---

###### tags: `小工具`
# JS點擊腳本
```javascript
var i = 1;
var times = 100;    //次數
var delay = 1000;   //秒數(ms)
function myLoop () {
   setTimeout(function () {
      document.getElementsByClassName('YourClassName')[0].click();
      i++;
      if (i < times) { 
         myLoop();
      }
   }, delay) 
}

myLoop();
```