Skip to content

Instantly share code, notes, and snippets.

@tarekeldeeb
Created October 19, 2025 16:06
Show Gist options
  • Select an option

  • Save tarekeldeeb/3833d2facdee58dbcaace7bc61bfff3a to your computer and use it in GitHub Desktop.

Select an option

Save tarekeldeeb/3833d2facdee58dbcaace7bc61bfff3a to your computer and use it in GitHub Desktop.
JS> Automatic download all mp3 sources from audiomack creators page
## Dev Console> https://creators.audiomack.com/dashboard/manage
(async () => {
const buttons = Array.from(
document.querySelectorAll('button, a')
).filter(b => b.textContent.trim().toLowerCase().includes('download'));
console.log(`Found ${buttons.length} download buttons`);
for (const [i, b] of buttons.entries()) {
console.log(`Downloading ${i + 1}/${buttons.length}: ${b.textContent.trim()}`);
b.scrollIntoView({ behavior: "smooth", block: "center" });
b.click();
await new Promise(r => setTimeout(r, 5000)); // wait 5 seconds per file
}
console.log("✅ Done — all downloads triggered.");
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment