Javascript Automatic Links, Loops -


i'm new coding, , i'm trying make script (to put in chrome bookmark) downloads youtube videos in click.

to start off, have script tubeoffline.com used content of bookmark. script takes url of youtube video , makes downloadable link.

the following code:

javascript:(function(){var openwindow=window.open('http://www.tubeoffline.com/downloadfrom.php'); var url=window.document.url.tostring(); var src=document.documentelement.innerhtml;var  note='book';form=document.createelement('form'); form.setattribute('method','post'); form.setattribute('action','http://www.tubeoffline.com/downloadfrom.php'); srcplaceholder=document.createelement('input'); srcplaceholder.setattribute('name','src'); srcplaceholder.setattribute('type','hidden'); srcplaceholder.setattribute('value',src); form.appendchild(srcplaceholder); urlplaceholder=document.createelement('input'); urlplaceholder.setattribute('name','url'); urlplaceholder.setattribute('type','hidden'); urlplaceholder.setattribute('value',url); form.appendchild(urlplaceholder); noteplaceholder=document.createelement('input'); noteplaceholder.setattribute('name','note'); noteplaceholder.setattribute('type','hidden'); noteplaceholder.setattribute('value',note); form.appendchild(noteplaceholder); openwindow.document.body.appendchild(form); form.submit();})(); 

what bookmark looks like

what output looks like

i want add code script automatically click download link (in highest quality.)

after want able put in list of urls , have loop loop script on them.


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -