🤬
  • ■ ■ ■ ■ ■
    HowTo/LeaveItToJS/ExtractMeduimWriteups.js
    skipped 48 lines
    49 49   '20','21','22','23','24','25','26','27','28','29',
    50 50   '30','31'];
    51 51   day = parseInt(url.substring(url.length-2));
     52 + base_url = url.substring(0,url.length-2);
    52 53   ReleaseIt("day");
    53 54   
    54 55   for (let i = day; i <= end_day; i++) {
    55 56   console.log("Process day: " + days_str[i]);
    56 57   await WaitForPreviuosProcessing("day");
    57 58   
    58  - next_url = url.replace(days_str[day],days_str[i]);
     59 + next_url = base_url + days_str[i];
    59 60   win = window.open(next_url);
    60 61   await new Promise(r => setTimeout(r, 5000));
    61 62   if (win.location != next_url) {
    skipped 100 lines
Please wait...
Page is in error, reload to recover