feature: add download all file by file alongside the tar download

This commit is contained in:
C4illin 2025-10-07 18:50:31 +00:00
parent 27e9b7eb35
commit 48e5e8a71c
20 changed files with 79 additions and 45 deletions

View file

@ -22,3 +22,17 @@ const refreshData = () => {
};
refreshData();
window.downloadAll = function () {
// Get all download links
const downloadLinks = document.querySelectorAll("a[download]");
// Trigger download for each link
downloadLinks.forEach((link, index) => {
// We add a delay for each download to prevent them from starting at the same time
setTimeout(() => {
const event = new MouseEvent("click");
link.dispatchEvent(event);
}, index * 300);
});
};