Skip to content

Instantly share code, notes, and snippets.

View Niklas-Zeidler's full-sized avatar

Niklas Zeidler Niklas-Zeidler

  • Monava
  • Göteborg
View GitHub Profile
@coleww
coleww / downloadAll.js
Last active May 16, 2022 23:33
bandcamp download all purchases
// for use on https://bandcamp.com/download pages.
// once all the download links on the page are loaded,
// open the javascript console, paste the following code in, and hit enter.
// leave the page open until the downloads stop,
// it'll pause for 30 seconds after every click to ensure the last download has started already.
var secs = 30; // adjust as needed for slower connections.
var intervalTime = secs * 1000
var toDownload = [].slice.call(document.querySelectorAll('.downloads a.item-button'));
var interval;