Javascript: Grab link from external webpage source and then place it in the specified location
<p>I need to create a JScript that does the following actions:</p>

<p>1- Grab a link from an external webpage's source code</p>

<p>2- Remove unecessary string from the link, if needed</p>

<p>3- Place that link in the specified entry</p>

<p>Now explained:</p>

<p>I have a video hosted in another website and i want to make it play in my own, the problem is that the link to that video changes after 12/24h and i have to update it all the time.</p>

<p>The webpage that provides the file has a permanent url so the link to the page that has the file never changes but the link to the video does.</p>

<p>I need a JScript that could recover the updated link from the specified webpage and place it inside the src field, something like a source code crawler until it find the match to the video name, like so:</p>

<p>The video is called video.mp4 and it allways has the same string after it (ex. &amp;download=yes)</p>

<p>Upon the match of the string 'video.mp4&amp;download=yes', it would retrieve the full path to the file, from "Http://www..." to "...video.mp4", ignoring the &amp;download=yes because the player cant play with that last string included.</p>

<p>After that is done, it would place the link in the specific "src=" field making it possible to be played in the video player.</p>

<p>Also, thanks in advance for the time spent, if possible try to make it easy for me to understand since im new in Jcript.</p>
