Added comment to ard_download_button and reformatted.
This commit is contained in:
parent
759b2023ca
commit
a7c7411bb0
|
@ -40,10 +40,11 @@ function main()
|
|||
add_button(url);
|
||||
}
|
||||
|
||||
function get_url()
|
||||
function get_url() // Extract URL from HTML.
|
||||
{
|
||||
const html = document.getElementsByTagName('html')[0].innerHTML;
|
||||
const re = new RegExp('"(https://pdvideosdaserste-a\.akamaihd\.net/[^"]+/320-[^"]+\.mp4)"');
|
||||
const re = new RegExp(
|
||||
'"(https://pdvideosdaserste-a\.akamaihd\.net/[^"]+/320-[^"]+\.mp4)"');
|
||||
const result = re.exec(html);
|
||||
if (result.length > 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue