Skip to content

Instantly share code, notes, and snippets.

@linktohack
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linktohack/37dcd3eb04bcc0c0e69b to your computer and use it in GitHub Desktop.
Save linktohack/37dcd3eb04bcc0c0e69b to your computer and use it in GitHub Desktop.
HorribleSubs all magnet links
[].filter.call(document.querySelectorAll('div.latest a'), function(e) {
return /^magnet/.test(e.getAttribute('href'));
}).filter(function(e) {
return /720p/.test(e.parentNode.parentNode.parentNode.innerText);
}).map(function (e) {
return e.getAttribute('href');
}).join('\n');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment