Last active
February 17, 2019 09:38
-
-
Save UniBreakfast/eb49cb9a003ede207b985883dd6272f7 to your computer and use it in GitHub Desktop.
get the link from temp1
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
function get(temp) { | |
var text = temp.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.children[1].innerText, | |
end = text.search('","cdn":"akamai_interconnect","quality":"720p')+1 || text.search('","cdn":"fastly","quality":"720p')+1, | |
begin = text.substring(0,end).lastIndexOf('https') | |
return text.substring(begin,end-1) | |
} | |
get(temp1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment