# embed-privacy/1.10.10/assets/js/elementor-video.min.js

Embed Privacy, version 1.10.10. 1 lines.

- Page: https://pluginprobe.com/plugins/embed-privacy/1.10.10/code/assets/js/elementor-video.min.js
- Raw: https://pluginprobe.com/plugins/embed-privacy/1.10.10/raw/assets/js/elementor-video.min.js
- Modified: 2022-01-17T09:45:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/embed-privacy/1.10.10/code/assets/js/elementor-video.min.js#L10-L20`.

```javascript
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})}));
```
