Untitled

 avatar
unknown
plain_text
2 years ago
859 B
4
Indexable
function clickButton() {
  var button = document.querySelector('.textButtonV2');

  if (button) {
    button.click();
    console.log("Düğmeye tıklandı!");
  } else {
    console.log("Düğme bulunamadı.");
  }
}

function performClickWithDelay() {
  var clickCount = 0;
  var delayInterval = 5 * 60 * 1000; // Başlangıçta 5 dakika bekleyecek

  function performClickIteration() {
    setTimeout(function () {
      clickButton();
      clickCount++;

      // 2. tıklamadan sonra bekleme süresini artır
      if (clickCount % 2 === 0) {
        delayInterval += 6 * 60 * 1000; // Her iki tıklamadan sonra 6 dakika artır
      }

      performClickIteration();
    }, delayInterval);
  }

  // İlk tıklama işlemini başlat
  performClickIteration();
}

// Tıklama işlemini başlat
performClickWithDelay();
Editor is loading...
Leave a Comment