crash.software
Projects
Pull Requests
Issues
Builds
NafisiAslH-KnowledgeSharing
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
NafisiAslH-KnowledgeSharing
Commits
d3fa6361
🤬
Sign In
Update ExtractMeduimWriteups.js
Hossein NafisiAsl
committed with
GitHub
2 years ago
d3fa6361
1 parent
1d4d4ebd
Total 1 files
■ ■
■
■ ■ ■
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
All occurrences
Please wait...
Page is in error, reload to recover