Converting the inline javascript to pure javascript, how would this be done?

I was thinking that too.

But how would that be written?

There’s no iframe written into the html though.

It’s just this:

<div class="wrapg ">

  <div class="video " data-id="M7lc1UVf-VE"></div>

  <div class="lines"></div>
</div>

I found this:

And this thread: