ghiwar

auto confirm friends fb mobile

Dec 1st, 2023
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Ambil semua elemen dengan class yang diberikan
  2. var buttons = document.querySelectorAll('._54k8._52jg._56bs._26vk._56b_._3cqr._5uc2._8yo0._56bu');
  3.  
  4. // Fungsi untuk menghasilkan angka acak antara min dan max (inklusif)
  5. function getRandomInt(min, max) {
  6.   return Math.floor(Math.random() * (max - min + 1)) + min;
  7. }
  8.  
  9. // Fungsi untuk mengklik tombol secara bergantian dengan jeda acak antara 1-8 detik
  10. function clickButtonsSequentially() {
  11.   var index = 0;
  12.  
  13.   function clickNextButton() {
  14.     if (index < buttons.length) {
  15.       buttons[index].click();
  16.       index++;
  17.       var randomDelay = getRandomInt(1000, 5000); // Jeda acak antara 1-8 detik
  18.       setTimeout(clickNextButton, randomDelay);
  19.     }
  20.   }
  21.  
  22.   clickNextButton();
  23. }
  24.  
  25. // Panggil fungsi untuk memulai pengklikan tombol secara bergantian
  26. clickButtonsSequentially();
Add Comment
Please, Sign In to add comment