Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple one-liner to parse out the URL of the video file on StreamCloud.
window.location.href = document.getElementsByName("flashvars")[0].value.split("&file=")[1].split("&")[0].replace(/%3A/g, ":").replace(/%2F/g, "/");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment