Last active
February 28, 2025 17:38
-
-
Save sugoidogo/554b33cfe73a57870a31725c35940883 to your computer and use it in GitHub Desktop.
extract a working video url from a twitch embed url using my videolink service
This file contains hidden or 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
async function getVideoURL(embed_url){ | |
embed_url+='&parent=clips.twitch.tv' | |
const url=new URL('https://videolink.sugoidogo.com') | |
url.searchParams.append('url',embed_url) | |
const response=await fetch(url) | |
return response.text() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment