1(function(){var T=52;var S=55;var registry=[];function P(u,p){var x=new URL(u);Object.keys(p).forEach(function(k){x.searchParams.set(k,p[k])});return x.toString()}function F(n,d){if(!n||d>4)return null;var h;try{h=new URL(n.src,n.ownerDocument.baseURI).hostname}catch(e){return null}if(h.indexOf("youtube.com")!==-1||h.indexOf("youtube-nocookie.com")!==-1)return n;try{var doc=n.contentDocument;if(doc){var nx=doc.querySelector("iframe");if(nx)return F(nx,d+1)}}catch(e){}return null}function SW(el){var s=function(e){e.preventDefault();e.stopPropagation()};["click","mousedown","mouseup","auxclick","dblclick"].forEach(function(ev){el.addEventListener(ev,s,true)})}function TB(doc){var d=doc.createElement("div");d.className="yt-a11y-title-block";d.setAttribute("aria-hidden","true");Object.assign(d.style,{position:"absolute",top:"0",left:"0",right:"0",height:T+"px",zIndex:"3",background:"transparent",cursor:"default"});SW(d);return d}function SB(doc,side){var d=doc.createElement("div");d.className="yt-a11y-side-block";d.setAttribute("aria-hidden","true");var st={position:"absolute",bottom:"12px",width:"90px",height:S+"px",zIndex:"3",cursor:"default"};st[side]="0";Object.assign(d.style,st);SW(d);return d}var RING="0 0 0 3px #ffffff, 0 0 0 6px #1a73e8";function KB(doc,title){var b=doc.createElement("button");b.type="button";b.className="yt-a11y-kb-btn";b.setAttribute("aria-label","Play video"+(title?": "+title:""));Object.assign(b.style,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0",width:"100%",height:"100%",background:"transparent",border:"0",boxShadow:"none",cursor:"default",padding:"0",margin:"0",pointerEvents:"none",zIndex:"2"});b.addEventListener("focus",function(){b.style.boxShadow=RING});b.addEventListener("blur",function(){b.style.boxShadow="none"});return b}function U(w){if(w.dataset.a11yUpgraded)return;var y=F(w,0);if(!y)return;w.dataset.a11yUpgraded="true";try{y.src=P(y.src,{controls:0,modestbranding:1,rel:0,enablejsapi:1})}catch(e){}w.setAttribute("tabindex","-1");var doc=w.ownerDocument;var par=w.parentElement;if(getComputedStyle(par).position==="static"){par.style.position="relative"}par.appendChild(TB(doc));par.appendChild(SB(doc,"left"));par.appendChild(SB(doc,"right"));var title=w.getAttribute("title")||"";var btn=KB(doc,title);par.appendChild(btn);var player=null;var pending=null;var entry={player:null};registry.push(entry);function apply(){if(!player||!pending)return;var a=pending;pending=null;if(a==="play")player.playVideo();else if(a==="pause")player.pauseVideo()}btn.addEventListener("click",function(){var playing=btn.getAttribute("aria-label").indexOf("Pause")===0;pending=playing?"pause":"play";apply()});var ww=w.contentWindow;var prev=ww.onYouTubeIframeAPIReady;ww.onYouTubeIframeAPIReady=function(){if(typeof prev==="function")prev();player=new ww.YT.Player(y,{events:{onReady:apply,onStateChange:function(e){if(e.data===1){btn.setAttribute("aria-label","Pause video"+(title?": "+title:""));registry.forEach(function(other){if(other!==entry&&other.player){try{other.player.pauseVideo()}catch(err){}}})}else if(e.data===2||e.data===0){btn.setAttribute("aria-label","Play video"+(title?": "+title:""))}}}});entry.player=player};if(ww.YT&&ww.YT.Player){ww.onYouTubeIframeAPIReady()}else{var innerDoc=w.contentDocument;var sc=innerDoc.createElement("script");sc.src="https://www.youtube.com/iframe_api";innerDoc.head.appendChild(sc)}}function scan(){document.querySelectorAll("iframe").forEach(U)}scan();var mo=new MutationObserver(scan);mo.observe(document.body,{childList:true,subtree:true});console.log("[a11y] YouTube embeds simplified: title/Share/Shorts hidden, one keyboard-focusable Play/Pause control per video, native Play icon untouched, only one video plays at a time.")})();
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.