stupidity simulator

This commit is contained in:
biglyderv 2025-01-31 21:09:13 -05:00
parent 07c34a1c4c
commit 78379601f0

13
site.js
View file

@ -37,17 +37,24 @@ async function urlCollector(url, path, file, useLimit) {
u.pathname = h;
h = u.toString();
}
let h2, h3;
let h2;
try {
h2 = new URL(h);
h3 = new URL(h2.origin);
} catch(err) {
return;
}
urls.push(h2.toString())
urls.push(h3.toString())
})
let h3;
try {
h3 = new URL(new URL(url).origin);
} catch(err) {
return;
}
urls.push(h3.toString())
return [...new Set(urls)];
}