title: Javascript Youtube mp4 download to ios
body: <p>I searched for many solutions to play Youtube videos on iOS.
  At the moment i just use a webview to show only the player and then press the play button (only embed the video in the webview).
  But I know there is a javascript solution to get an mp4 link for the youtube video.</p>
  
  <p>This is the javascript:
  <a href="http://userscripts.org/scripts/show/25105" rel="nofollow">http://userscripts.org/scripts/show/25105</a></p>
  
  <p>The script searches for the video element and grabs all informations and finally make it possible to download the mp4.
  Im not good in javascript, so i dont know if there is an possibility to write that code, that it just works with <a href="http://myurl.com/getvideo?id=VIDEOID" rel="nofollow">http://myurl.com/getvideo?id=VIDEOID</a> .</p>
  
  <p>I would try it myself, but i dont know if it is possible to grab all these informations the script uses without the player element.</p>
  
  <p>Maybe you can help me ;)</p>
  
  <p>(im using iOS 5 btw)</p>
  
  <p>My english is not the best, so if u have problems to understand something, just ask.</p>