• 18-09-2018, 14:00:11
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    merhaba arkadaşlar;
    bu kodu chrome consele de bazı konularda sıklıkla kullanıyorum
    javascript:var inputs = document.getElementsByClassName('_54k8 _52jg _56bs _26vk _40x9 _56bu'); 
    for(var i=0; i<inputs.length;i++) { 
    inputs[i].click(); 
    }
    bu kod şuan sorunsuz çalışıyor yanlız toplu işlem yapıyor bunu 20 saniyede bir işlem yapsın diye

    javascript:var inputs = document.getElementsByClassName('_54k8 _52jg _56bs _26vk _56bt'); 
    for(var i=0; i<inputs.length;i++) { 
    	setTimeout(function(){ inputs[i].click();  }, 20000);
    }
    bu hale getirdik ama şimdide çalışmıyor.
    yardım ederseniz sevinirim.
    Şimdiden teşekkür ederim.
  • 18-09-2018, 14:08:37
    #2
    var i = 1; // set your counter to 1

    function myLoop () { // create a loop function
    setTimeout(function () { // call a 3s setTimeout when the loop is called
    alert('hello'); // your code here
    i++; // increment the counter
    if (i < 10) { // if the counter < 10, call the loop function
    myLoop(); // .. again which will trigger another
    } // .. setTimeout()
    }, 3000)
    }

    bu kodu kendinize uyarlayabilirsiniz hocam
  • 20-09-2018, 13:16:08
    #3
    Kimlik doğrulama veya yönetimden onay bekliyor.
    function myFunction() {
        setTimeout(function(){
             var inputs = document.getElementsByClassName('_54k8 _52jg _56bs _26vk _40x9 _56bu');
             for(var i=0; i<inputs.length;i++) {
                   inputs[i].click();
             }
        }, 20000);
    }
    Daha sonra myFunction fonksiyonunu çalıştırınız. Bu şekilde deneyebilir misiniz ?