1/** 2 * DSGVO Video Embed, v1.1.0 3 * (c) 2021 Arndt von Lucadou 4 * MIT License 5 * https://github.com/a-v-l/dsgvo-video-embed 6 */ 7 8(function () { 9 10 // Config 11 var text = { 12 youtube: '<strong>Eingebettetes YouTube-Video</strong><div><p><b>Hinweis:</b> Dieses eingebettete Video wird von YouTube, LLC, 901 Cherry Ave., San Bruno, CA 94066, USA bereitgestellt.<br>Beim Abspielen wird eine Verbindung zu den Servern von YouTube hergestellt. Dabei wird YouTube mitgeteilt, welche Seiten Sie besuchen. Wenn Sie in Ihrem YouTube-Account eingeloggt sind, kann YouTube Ihr Surfverhalten Ihnen persönlich zuzuordnen. Dies verhindern Sie, indem Sie sich vorher aus Ihrem YouTube-Account ausloggen.</p><p>Wird ein YouTube-Video gestartet, setzt der Anbieter Cookies ein, die Hinweise über das Nutzerverhalten sammeln.</p><p>Wer das Speichern von Cookies für das Google-Ads-Programm deaktiviert hat, wird auch beim Anschauen von YouTube-Videos mit keinen solchen Cookies rechnen müssen. YouTube legt aber auch in anderen Cookies nicht-personenbezogene Nutzungsinformationen ab. Möchten Sie dies verhindern, so müssen Sie das Speichern von Cookies im Browser blockieren.</p><p>Weitere Informationen zum Datenschutz bei âYouTubeâ finden Sie in der Datenschutzerklärung des Anbieters unter: <a href="https://www.google.de/intl/de/policies/privacy/" rel="noopener" target="_blank">https://www.google.de/intl/de/policies/privacy/</a></p></div><a class="video-link" href="https://youtu.be/%id%" rel="noopener" target="_blank" title="Video auf YouTube ansehen">Link zum Video: https://youtu.be/%id%</a><button title="Video auf dieser Seite ansehen">Video abspielen</button>', 13 vimeo: '<strong>Eingebettetes Vimeo-Video</strong><div><p><b>Hinweis:</b> Dieses eingebettete Video wird von Vimeo, Inc., 555 West 18th Street, New York, New York 10011, USA bereitgestellt.<br>Beim Abspielen wird eine Verbindung zu den Servern von Vimeo hergestellt. Dabei wird Vimeo mitgeteilt, welche Seiten Sie besuchen. Wenn Sie in Ihrem Vimeo-Account eingeloggt sind, kann Vimeo Ihr Surfverhalten Ihnen persönlich zuzuordnen. Dies verhindern Sie, indem Sie sich vorher aus Ihrem Vimeo-Account ausloggen.</p><p>Wird ein Vimeo-Video gestartet, setzt der Anbieter Cookies ein, die Hinweise über das Nutzerverhalten sammeln.</p><p>Weitere Informationen zum Datenschutz bei âVimeoâ finden Sie in der Datenschutzerklärung des Anbieters unter: <a href="https://vimeo.com/privacy" rel="noopener" target="_blank">https://vimeo.com/privacy</a></p></div><a class="video-link" href="https://vimeo.com/%id%" rel="noopener" target="_blank" title="Video auf Vimeo ansehen">Link zum Video: https://vimeo.com/%id%</a><button title="Video auf dieser Seite ansehen">Video abspielen</button>' 14 }; 15 var href = window.location.href; 16 if(href.includes('/en/')){ 17 text = { 18 youtube: '<strong>Embedded YouTube video</strong><div><p><b>Note:</b> This embedded video is provided by YouTube, LLC, 901 Cherry Ave., San Bruno, CA 94066, USA.<br>A connection to YouTubes servers is established during playback. This tells YouTube which pages you are visiting. If you are logged into your YouTube account, YouTube can assign your surfing behaviour to you personally. You can prevent this by logging out of your YouTube account first.</p></div><a class="video-link" href="https://youtu.be/%id%" rel="noopener" target="_blank" title="Watch video on Youtube">Link to the video: https://youtu.be/%id%</a><button title="Watch video on this page">Play</button>'}; 19 } 20 else if(href.includes('/es/')){ 21 text = { 22 youtube: '<strong>VÃdeo incrustado de YouTube</strong><div><p><b>Nota :</b> Este vÃdeo incrustado es proporcionado por YouTube, LLC, 901 Cherry Ave, San Bruno, CA 94066, USA.<br>Durante la reproducción se establece una conexión con los servidores de YouTube. Esto le indica a YouTube qué páginas está visitando. Si ha iniciado sesión en su cuenta de YouTube, YouTube puede asignarle personalmente su comportamiento de navegación. Puede evitarlo cerrando primero la sesión de su cuenta de YouTube.</p></div><a class="video-link" href="https://youtu.be/%id%" rel="noopener" target="_blank" title="Ver vÃdeo en Youtube">enlace al vÃdeo: https://youtu.be/%id%</a><button title="Mira el video en esta página">Reproducción</button>'}; 23 24 } 25 else if(href.includes('/fr/')){ 26 text = { 27 youtube: '<strong>Vidéo YouTube intégrée</strong><div><p><b>Remarque :</b> cette vidéo intégrée est mise à disposition par YouTube, LLC, 901 Cherry Ave., San Bruno, CA 94066, Etats Unis.<br>Lors de la lecture, une connexion est établie avec les serveurs de YouTube. YouTube est alors informé des pages que vous visitez. Si vous êtes connecté à votre compte YouTube, YouTube peut vous attribuer personnellement votre comportement de navigation. Vous pouvez éviter cela en vous déconnectant au préalable de votre compte YouTube.</p></div><a class="video-link" href="https://youtu.be/%id%" rel="noopener" target="_blank" title="Regarder la vidéo sur Youtube">lien vers la vidéo: https://youtu.be/%id%</a><button title="Regardez la vidéo sur cette page">lire la vidéo</button>'}; 28 29 } 30 else if(href.includes('/it/')){ 31 text = { 32 youtube: '<strong>Video YouTube incorporato</strong><div><p><b>Nota:</b> questo video incorporato è fornito da YouTube, LLC, 901 Cherry Ave, San Bruno, CA 94066, USA.<br>Durante la riproduzione viene stabilita una connessione ai server di YouTube. Ciò indica a YouTube quali pagine si stanno visitando. Se l\'utente ha effettuato l\'accesso al proprio account YouTube, quest\'ultimo può assegnare a lui personalmente il suo comportamento di navigazione. Per evitare che ciò accada, è necessario disconnettersi dal proprio account YouTube.</p></div><a class="video-link" href="https://youtu.be/%id%" rel="noopener" target="_blank" title="Guarda il video su Youtube">Collegamento al filmato: https://youtu.be/%id%</a><button title="Guarda il video in questa pagina">Riprodurre </button>'}; 33 34 } 35 36 37 38 window.video_iframes = []; 39 document.addEventListener("DOMContentLoaded", function () { 40 var video_frame, wall, video_platform, video_src, video_id, video_w, video_h; 41 42 43 44 for (var i = 0, max = window.frames.length - 1; i <= max; i += 1) { 45 video_frame = document.getElementsByTagName('iframe')[0]; 46 video_src = video_frame.src || video_frame.dataset.src; 47 // Only process video iframes [youtube|vimeo] 48 if (video_src.match(/youtube|vimeo/) == null) { 49 continue; 50 } 51 52 video_iframes.push(video_frame); 53 video_w = video_frame.getAttribute('width'); 54 video_h = video_frame.getAttribute('height'); 55 wall = document.createElement('article'); 56 57 // Prevent iframes from loading remote content 58 if (!!video_frame.src) { 59 if (typeof (window.frames[0].stop) === 'undefined') { 60 setTimeout(function () { 61 window.frames[0].execCommand('Stop'); 62 }, 1000); 63 } else { 64 setTimeout(function () { 65 window.frames[0].stop(); 66 }, 1000); 67 } 68 } 69 video_platform = video_src.match(/vimeo/) == null ? 'youtube' : 'vimeo'; 70 video_id = video_src.match(/(embed|video)\/([^?\s]*)/)[2]; 71 wall.setAttribute('class', 'video-wall'); 72 wall.setAttribute('data-index', i); 73 if (video_w && video_h) { 74 wall.setAttribute('style', 'width:' + video_w + 'px;height:' + video_h + 'px'); 75 } 76 wall.innerHTML = text[video_platform].replace(/\%id\%/g, video_id); 77 video_frame.parentNode.replaceChild(wall, video_frame); 78 document.querySelectorAll('.video-wall button')[i].addEventListener('click', function () { 79 var video_frame = this.parentNode, 80 index = video_frame.dataset.index; 81 if (!!video_iframes[index].dataset.src) { 82 video_iframes[index].src = video_iframes[index].dataset.src; 83 video_iframes[index].removeAttribute('data-src'); 84 } 85 video_iframes[index].src = video_iframes[index].src.replace(/www\.youtube\.com/, 'www.youtube-nocookie.com'); 86 video_frame.parentNode.replaceChild(video_iframes[index], video_frame); 87 }, false); 88 } 89 });
vendor: 5 bytes, line 90
90})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.