Zack Saadioui
4/24/2025
1
Ctrl + Shift + I
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
javascript
function isAtBottom() {
return (window.innerHeight + window.scrollY) >= document.documentElement.scrollHeight;
}
function promptUser(items) {
let format = '';
items.forEach(item => format += `<a href='${item}'>${item}</a><br>`);
document.write(`<html style='font-family: sans-serif'><head><title>Your Repl Files</title></head><body><h1>Success!</h1><br><h3>Your Replit files successfully fetched.</h3><button onclick="downloadAll();">Download All</button><br><br><br>${format}</body></html>`);
const script = document.createElement('script');
script.textContent = `
function downloadAll() {
const items = ${JSON.stringify(items)};
items.forEach(item => window.open(item));
}
`;
document.body.appendChild(script);
}
function finishSetup() {
let items = [];
console.log('Process complete! Fetching Repls...');
document.querySelectorAll('.css-ow5df0 a').forEach(element => {
let currentHref = new URL(element.href);
currentHref.search = '';
let newHref = currentHref.toString() + '.zip';
items.push(newHref);
});
promptUser(items);
}
function scrollToBottom() {
const scrollSpeed = 300;
function performScroll() {
window.scrollBy(0, scrollSpeed);
if (isAtBottom()) {
console.log('Checking Repls available...');
setTimeout(function() {
if (isAtBottom() && !document.querySelector('.load-more-spinner')) {
finishSetup();
} else {
requestAnimationFrame(performScroll);
}
}, 2000);
} else {
requestAnimationFrame(performScroll);
}
}
requestAnimationFrame(performScroll);
}
console.clear();
scrollToBottom();
1
.zip
1
2
3
4
5
6
bash
git init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO.git
git push -u origin master
Copyright © Arsturn 2025