Skip to content

Instantly share code, notes, and snippets.

@m4tm4t
Created October 10, 2013 12:32
Show Gist options
  • Save m4tm4t/6917570 to your computer and use it in GitHub Desktop.
Save m4tm4t/6917570 to your computer and use it in GitHub Desktop.
function download(links, id) {
setTimeout(function() {
link = $(links[id]).attr('href');
id = link.split("id=")[1];
window.location = '/torrents/download/?id=' + id;
}, 2000*id);
}
(function() {
links = $("a[href*='/nfo/']");
for (var i = links.length - 1; i >= 0; i--) {
download(links, i);
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment