Skip to content

Instantly share code, notes, and snippets.

@clooth
Created September 18, 2013 23:55
Show Gist options
  • Save clooth/6617401 to your computer and use it in GitHub Desktop.
Save clooth/6617401 to your computer and use it in GitHub Desktop.
var downloadURL = function(a) {
var b = "hiddenDownloader" + (+new Date()),
c = document.getElementById(b);
null === c && (c = document.createElement("iframe"), c.id = b, c.style.display = "none", document.body.appendChild(c)), c.src = a
};
window.zips = document.querySelectorAll('a.tutLink[href$=zip]');
var i = 0;
for (var i; i < window.zips.length; i++) {
var zip = window.zips[i];
downloadURL(zip.href);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment