Last active
June 2, 2017 10:26
-
-
Save dannyge/6083ffc3ad42c7b95b9e2b0d803d4e7c to your computer and use it in GitHub Desktop.
get ed2k link from chrome console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//page URL: | |
//http://www.ttmeiju.com/meiju/House.of.Cards.html | |
var hrefs = $$("[name^='ed2k']"); | |
var links = ""; | |
$.each(hrefs,function(){ | |
var link = $(this).attr("href"); | |
if(link.indexOf('FIX')>0){ | |
links = links+ "\n"+ link; | |
} | |
}); | |
console.log(links); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment