من هي الفنانة هدى حسين فن الفنانة هدى حسين الإثنين 10/فبراير/2025 - 03:11 م replaceOembeds(); function replaceOembeds() { var allEmbeds = document.getElementsByTagName("OEMBED"); while (allEmbeds.length != 0) { replaceOembedWithHtml(allEmbeds[0], extractLinkFromOembed(allEmbeds[0])); allEmbeds = document.getElementsByTagName("OEMBED"); } runYoutubeLazyLoad(); window.onscroll = function () { loadAPI(); window.onscroll = null; } // loadfbApi(); } function replaceOembedWithHtml(element, sourceData) { if (sourceData.source.toLowerCase() === "youtube") { var html="" + '' + '' + ' ' + '' + '' + ''; replaceElementWithHtml(element, html); } else if (sourceData.source.toLowerCase() === "instagram") { var html="'; replaceElementWithHtml(element, html); } else if (sourceData.source.toLowerCase() === "facebook") { var html="'; ObjParent = Obj.parentNode; //Okey, element should be parented ObjParent.replaceChild(tmpObj, Obj); //here we placing our temporary data instead of our target, so we can find it then and replace it into whatever we want to replace to ObjParent.innerHTML = ObjParent.innerHTML.replace('