SHARE
TWEET

Untitled

a guest Sep 11th, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var allDownloads = new Array();
  2. currentItem = 0;
  3. function downloadNext() {
  4.     if(currentItem==allDownloads.length) {
  5.         return;
  6.     }
  7.     console.log(currentItem);
  8.     console.log(allDownloads[currentItem])
  9.     allDownloads[currentItem].click();
  10.     setTimeout(downloadNext,2000)
  11.     currentItem=currentItem+1;
  12. }
  13.  
  14.  
  15. $("td[title='Ver']").each(function(i, obj){
  16.     allDownloads[allDownloads.length] = $(obj).find("input");
  17. });
  18.  
  19. console.log(allDownloads);
  20. downloadNext();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top