Iframe where src, what is blob??

How to hide iframe src link?


When you debug, you can see: <iframe src="blob:https://www.nodejsauto.com/blah-blah"...

Where src youtube???

Youtube here

This is code: creat elem <div id="htmlTest"></div>


//
var blobMe= URL['createObjectURL'](new Blob([''], {type: 'text/html'}));
var elIframe = document['createElement']('iframe');
elIframe['setAttribute']('frameborder', '0');
elIframe['setAttribute']('width', '100%');
elIframe['setAttribute']('height', '500px');
elIframe['setAttribute']('allowfullscreen', 'true');
elIframe['setAttribute']('webkitallowfullscreen', 'true');
elIframe['setAttribute']('mozallowfullscreen', 'true');
elIframe['setAttribute']('src', blobMe);
var idOne= 'gepa_'+ Date.now();
elIframe['setAttribute']('id', idOne);
document.getElementById('htmlTest').appendChild(elIframe);
const iframeHere= 'https://www.youtube.com/embed/GdIEi4lIH_Q';
document['getElementById'](idOne)['contentWindow']['document'].write('<script type="text/javascript">location.href = "' + iframeHere + '";</script>')
//

./.

Comments

  1. Hello,
    Thanks for the code I've been looking for something similar for months.
    But I don't know HTML/JavaScript and I couldn't get the code to work.
    Because I copy paste it as it is :P
    Is there more to it?


    Regards,
    Ahmad.

    ReplyDelete
  2. Hello,
    I wanted fembed tool: https://tool.baoxinh.com/fembed.cg
    If you want to sell it, I will purchase it.
    Waiting for your reply.

    ReplyDelete

Post a Comment