Skip to content

Instantly share code, notes, and snippets.

@jfirebaugh
Created November 26, 2012 02:11
Show Gist options
  • Select an option

  • Save jfirebaugh/4146221 to your computer and use it in GitHub Desktop.

Select an option

Save jfirebaugh/4146221 to your computer and use it in GitHub Desktop.
$.ajax({async: false, url: document.querySelector('param[name=initParams]').attributes.value.value.match(/Manifest=([^,]*)/)[1], success: function (xml) { document.location = xml.querySelectorAll('Location')[1].textContent.replace(/playbackTicket=/, "playbackTicket=" + document.querySelector('param[name=initParams]').attributes.value.value.match(/PlaybackTicket=([0-9a-f]*)/)[1]); }})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment