PageSourceSearch

https://informedigital.com.ar/wp-content/themes/ID-2026/assets/js/youtube-embed-url.js?ver=abcd837d3bb5

js informedigital.com.ar collected 2026-09-24 20:48:10 UTC 1,135 bytes, 34 lines download raw bytes

1/**
2 * URL de embed YouTube con autoplay=1 y mute=1 (política del navegador).
3 * Usado por: video-facade.js, idtv-videos.js, studio-stream-shorts.js (opcional).
4 */
5(function (w) {
6    'use strict';
7
8    /**
9     * @param {string} src URL de embed (https o //).
10     * @returns {string}
11     */
12    function informeAppendYouTubeAutoplayMute(src) {
13        if (!src) {
14            return '';
15        }
16        var protoRel = /^\/\//.test(src);
17        try {
18            var abs = protoRel ? 'https:' + src : src;
19            var u = new URL(abs);
20            u.searchParams.set('autoplay', '1');
21            u.searchParams.set('mute', '1');
22            u.searchParams.set('playsinline', '1');
23            if (protoRel) {
24                return '//' + u.host + u.pathname + u.search + (u.hash || '');
25            }
26            return u.toString();
27        } catch (e) {
28            var sep = src.indexOf('?') >= 0 ? '&' : '?';
29            return src + sep + 'autoplay=1&mute=1&playsinline=1';
30        }
31    }
32
33    w.informeAppendYouTubeAutoplayMute = informeAppendYouTubeAutoplayMute;
34})(typeof window !== 'undefined' ? window : this);

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.