Why does the yt.js inject code like <script>foo</script> into the document with document.body.appendChild ? Isn't there some way to directly use that code like:
var fileref=document.createElement('script')
fileref.setAttribute("type","text/javascript")
fileref.setAttribute("src", filename)
document.getElementsByTagName("head")[0].appendChild(fileref)
this is a question not a bug.
Why does the yt.js inject code like
<script>foo</script>
into the document withdocument.body.appendChild
? Isn't there some way to directly use that code like: