PluginProbe
Embed Privacy / 1.10.9
Embed Privacy v1.10.9
1.14.0 1.13.0 trunk 0.1 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.1.3 1.10.0 1.10.1 1.10.10 1.10.2 1.10.3 1.10.4 1.10.5 1.10.6 1.10.7 1.10.8 1.10.9 1.11.0 1.11.1 1.11.2 All 68 releases
embed-privacy / assets / js / elementor-video.min.js

elementor-video.min.js in Embed Privacy 1.10.9, at assets/js/elementor-video.min.js

1 lines 850 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".embed-privacy-container.embed-youtube")&&new MutationObserver((function(e,t){const n=document.querySelectorAll(".embed-privacy-container.embed-youtube .embed-privacy-content > .elementor-element");if(n.length)for(let e=0;e<n.length;e++){const t=n[e].querySelector("div.elementor-video");if(!t)continue;const o=JSON.parse(n[e].getAttribute("data-settings"));if(!o)continue;const l=document.createElement("iframe");let c=o.youtube_url.replace("watch?v=","embed/")+"?";o.controls&&(c+="controls=1&"),o.autoplay&&(c+="autoplay=1&playsinline=1&"),l.src=c,l.allowFullscreen=1,l.class="elementor-video",l.style.maxHeight="332px",l.style.maxWidth="100%",l.style.height=360,l.style.width=640,t.parentNode.replaceChild(l,t)}})).observe(document,{childList:!0,subtree:!0})}));