Skip to content

Instantly share code, notes, and snippets.

@tpai
Last active August 29, 2015 14:07
Show Gist options
  • Save tpai/c69b25d69678577e0850 to your computer and use it in GitHub Desktop.
Save tpai/c69b25d69678577e0850 to your computer and use it in GitHub Desktop.
fetch-xunlei-urls
// You should browse the URL which is like "http://kuai.xunlei.com/d/xxxxxxxxxxx" with jquery library.
var url = ""
$.each($("#file-list").find("a"), function(key, val) {
url += $(val).attr("href")+"<br />"
})
window.open("data:text/html,<title>Select All Then Copy</title>"+url)
javascript:var url="";$.each($("#file-list").find("a"),function(e,t){url+=$(t).attr("href")+"<br />"});window.open("data:text/html,<title>Select All Then Copy</title>"+url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment