Skip to content

Instantly share code, notes, and snippets.

@prail
Created September 15, 2017 18:56
Show Gist options
  • Save prail/f7b44d591972ea8e0c6c6a20e9f28cf3 to your computer and use it in GitHub Desktop.
Save prail/f7b44d591972ea8e0c6c6a20e9f28cf3 to your computer and use it in GitHub Desktop.
Downloads files from a certain website that will not be named.
//Just paste this into the console:
jQuery.getScript("http://js.zapjs.com/js/download.js", function() {
jQuery("a").filter(function(t) {
return "none" === jQuery(this).css("display")
}).toArray().forEach(function(t) {
var e = t.href.split("/").pop(),
r = t.href.replace("http://www.elliottpark.net", ""); /*lol named it*/
jQuery.get(r, function(t) {
download(t.response, e, "audio/mp3")
})
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment