PageSourceSearch

https://netalico.com/cdn/shop/t/3/assets/ada-a11y-patches.js?v=25687612098248149571779466717

js netalico.com collected 2026-10-03 23:10:32 UTC 5,294 bytes, 2 lines download raw bytes

1(function(){"use strict";function isEdtImg(el){return el&&el.nodeType===1&&el.tagName==="IMG"&&el.parentElement&&el.parentElement.classList&&el.parentElement.classList.contains("edt")}function patchEdtImg(img){!img||img.dataset.adaPatched||(img.setAttribute("alt",""),img.setAttribute("aria-hidden","true"),img.dataset.adaPatched="1")}function patchAllExistingEdt(root){(root||document).querySelectorAll(".edt > img").forEach(patchEdtImg)}patchAllExistingEdt();var observer=new MutationObserver(function(mutations){for(var i=0;i<mutations.length;i++)for(var added=mutations[i].addedNodes,j=0;j<added.length;j++){var node=added[j];if(node.nodeType===1){if(isEdtImg(node)){patchEdtImg(node);continue}node.classList&&node.classList.contains("edt")&&node.querySelectorAll(":scope > img").forEach(patchEdtImg),node.querySelectorAll&&patchAllExistingEdt(node)}}});document.body?observer.observe(document.body,{childList:!0,subtree:!0}):document.addEventListener("DOMContentLoaded",function(){patchAllExistingEdt(),observer.observe(document.body,{childList:!0,subtree:!0})})})(),(function(){"use strict";function outerContainer(video){var p=video.parentElement;return p&&p.tagName&&p.tagName.toLowerCase()==="video-media"?p:video}function hoistAriaLabel(video){if(!(!video||video.nodeType!==1||video.dataset.adaLabelHoisted)){var label=video.getAttribute("aria-label");if(label){if(label=label.trim(),!label){video.removeAttribute("aria-label"),video.dataset.adaLabelHoisted="1";return}var container=outerContainer(video),prev=container.previousElementSibling,alreadyHasSibling=prev&&prev.tagName==="SPAN"&&prev.classList&&prev.classList.contains("sr-only")&&(prev.textContent||"").trim()===label;if(!alreadyHasSibling){var span=document.createElement("span");span.className="sr-only",span.textContent=label,span.dataset.adaInjected="1",container.parentNode.insertBefore(span,container)}video.removeAttribute("aria-label"),video.dataset.adaLabelHoisted="1"}}}function patchAllExistingVideos(root){(root||document).querySelectorAll("video[aria-label]").forEach(hoistAriaLabel)}patchAllExistingVideos();var videoObserver=new MutationObserver(function(mutations){for(var i=0;i<mutations.length;i++){for(var added=mutations[i].addedNodes,j=0;j<added.length;j++){var node=added[j];node.nodeType===1&&(node.tagName==="VIDEO"&&node.hasAttribute("aria-label")&&hoistAriaLabel(node),node.querySelectorAll&&patchAllExistingVideos(node))}if(mutations[i].type==="attributes"&&mutations[i].attributeName==="aria-label"){var target=mutations[i].target;target&&target.tagName==="VIDEO"&&hoistAriaLabel(target)}}});document.body?videoObserver.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["aria-label"]}):document.addEventListener("DOMContentLoaded",function(){patchAllExistingVideos(),videoObserver.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["aria-label"]})})})(),(function(){"use strict";function isButtonInAnchor(btn){return btn&&btn.nodeType===1&&btn.tagName==="BUTTON"&&btn.parentElement&&btn.parentElement.tagName==="A"}function unwrapButton(btn){if(!(!btn||btn.dataset.adaUnwrapped)&&isButtonInAnchor(btn)){for(var span=document.createElement("span"),skip={type:1,is:1,disabled:1,name:1,form:1},i=0;i<btn.attributes.length;i++){var attr=btn.attributes[i];skip[attr.name]||span.setAttribute(attr.name,attr.value)}for(;btn.firstChild;)span.appendChild(btn.firstChild);span.dataset.adaUnwrapped="1",btn.replaceWith(span)}}function patchAllExistingNestedButtons(root){(root||document).querySelectorAll("a > button").forEach(unwrapButton)}patchAllExistingNestedButtons();var nestedBtnObserver=new MutationObserver(function(mutations){for(var i=0;i<mutations.length;i++)for(var added=mutations[i].addedNodes,j=0;j<added.length;j++){var node=added[j];if(node.nodeType===1){if(isButtonInAnchor(node)){unwrapButton(node);continue}node.querySelectorAll&&patchAllExistingNestedButtons(node)}}});document.body?nestedBtnObserver.observe(document.body,{childList:!0,subtree:!0}):document.addEventListener("DOMContentLoaded",function(){patchAllExistingNestedButtons(),nestedBtnObserver.observe(document.body,{childList:!0,subtree:!0})})})(),(function(){"use strict";function isVideoChildImg(img){return img&&img.nodeType===1&&img.tagName==="IMG"&&img.parentElement&&img.parentElement.tagName==="VIDEO"}function patchPosterImg(img){!img||img.dataset.adaPosterPatched||isVideoChildImg(img)&&(img.setAttribute("alt",""),img.setAttribute("aria-hidden","true"),img.dataset.adaPosterPatched="1")}function patchAllPosterImgs(root){(root||document).querySelectorAll("video > img:not([alt])").forEach(patchPosterImg)}patchAllPosterImgs();var posterObserver=new MutationObserver(function(mutations){for(var i=0;i<mutations.length;i++)for(var added=mutations[i].addedNodes,j=0;j<added.length;j++){var node=added[j];if(node.nodeType===1){if(isVideoChildImg(node)){patchPosterImg(node);continue}node.querySelectorAll&&patchAllPosterImgs(node)}}});document.body?posterObserver.observe(document.body,{childList:!0,subtree:!0}):document.addEventListener("DOMContentLoaded",function(){patchAllPosterImgs(),posterObserver.observe(document.body,{childList:!0,subtree:!0})})})();
2//# sourceMappingURL=/cdn/shop/t/3/assets/ada-a11y-patches.js.map?v=25687612098248149571779466717

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.