(function(d) { var queryParams = '?'; queryParams = queryParams.slice(0, -1); var newiframe = document.createElement('iframe'); newiframe.setAttribute('width','530'); newiframe.setAttribute('height','298.125'); newiframe.setAttribute('title', 'اگر ماه به زمین نزدیک بود'); newiframe.setAttribute('allowFullScreen','true'); newiframe.setAttribute('webkitallowfullscreen','true'); newiframe.setAttribute('mozallowfullscreen','true'); newiframe.setAttribute('src','https://www.aparat.com/video/video/embed/videohash/mx3yS/vt/frame' + queryParams); setTimeout(function(){ document.getElementById('14174111319544784').appendChild(newiframe); }, 200); })();