vimeo: privacy click-to-load

This commit is contained in:
2026-06-29 10:05:46 +02:00
parent b0722fe90a
commit 8d08c0e97e
+1
View File
@@ -16,5 +16,6 @@
<script src="{{ "js/nav.js" | relURL }}" defer></script> <script src="{{ "js/nav.js" | relURL }}" defer></script>
<script src="{{ "js/boot.js" | relURL }}" defer></script> <script src="{{ "js/boot.js" | relURL }}" defer></script>
<script>document.addEventListener('contextmenu',function(e){e.preventDefault();});</script> <script>document.addEventListener('contextmenu',function(e){e.preventDefault();});</script>
<script>document.addEventListener('click',function(e){var b=e.target.closest?e.target.closest('.vimeo__play'):null;if(!b)return;var w=b.parentNode,id=w.getAttribute('data-vimeo');if(!id)return;var f=document.createElement('iframe');f.src='https://player.vimeo.com/video/'+id+'?dnt=1&autoplay=1&badge=0&autopause=0';f.title='video';f.allow='autoplay; fullscreen; picture-in-picture';f.setAttribute('allowfullscreen','');f.setAttribute('sandbox','allow-scripts allow-same-origin allow-presentation allow-popups');f.referrerPolicy='strict-origin-when-cross-origin';w.innerHTML='';w.appendChild(f);});</script>
</body> </body>
</html> </html>