PageSourceSearch

https://www.nestbedding.com/cdn/shop/t/582/assets/ada-scanner-reme…?v=37735515895955831701790198821

js nestbedding.com collected 2026-09-24 21:18:16 UTC 5,215 bytes, 2 lines download raw bytes

1(function(){if(window.__nestAdaScannerRemediation20260901b)return;window.__nestAdaScannerRemediation20260901b="v3-overflow-aware-scroll-region";function clean(text){return String(text||"").replace(/\s+/g," ").trim()}function isVisible(el){if(!el||!el.getClientRects||!el.getClientRects().length)return!1;var style=window.getComputedStyle(el);return style.display!=="none"&&style.visibility!=="hidden"&&style.opacity!=="0"}function fixHeaderLandmarks(root){var headerWrapper=document.querySelector("#shopify-section-header"),stickyHeader=document.querySelector("body > .sticky-header-content"),header=document.querySelector("header.site-header");stickyHeader&&(stickyHeader.setAttribute("role","banner"),stickyHeader.setAttribute("aria-label","Site header"),document.getElementById("NestSiteHeaderAccessibleName")&&stickyHeader.setAttribute("aria-labelledby","NestSiteHeaderAccessibleName")),headerWrapper&&headerWrapper!==stickyHeader&&(headerWrapper.removeAttribute("role"),headerWrapper.removeAttribute("aria-label"),headerWrapper.removeAttribute("aria-labelledby")),header&&(header.setAttribute("role","presentation"),header.removeAttribute("aria-label"))}function fixProductSpecs(root){Array.prototype.forEach.call((root||document).querySelectorAll(".product-specs"),function(region){var heading=region.querySelector("h2[id]");heading&&!region.getAttribute("aria-labelledby")&&region.setAttribute("aria-labelledby",heading.id)}),Array.prototype.forEach.call((root||document).querySelectorAll(".product-specs .specs-minus, .product-specs .specs-plus"),function(icon){icon.setAttribute("aria-hidden","true"),icon.setAttribute("role","presentation"),icon.setAttribute("data-nest-ada-decorative-icon","true"),icon.removeAttribute("aria-label"),icon.removeAttribute("aria-controls"),icon.removeAttribute("aria-expanded"),icon.removeAttribute("tabindex")})}function fixAggregateStars(root){Array.prototype.forEach.call((root||document).querySelectorAll(".nest-aggregate-stars[data-aggregate-stars]"),function(stars){stars.setAttribute("aria-hidden","true"),stars.setAttribute("data-nest-aggregate-stars-decorative","true"),stars.removeAttribute("role"),stars.removeAttribute("aria-label")})}function fixTables(root){var tables=(root||document).querySelectorAll("table");Array.prototype.forEach.call(tables,function(table){Array.prototype.forEach.call(table.querySelectorAll("tr"),function(row){var firstCell=row.children&&row.children[0];firstCell&&firstCell.tagName==="TH"&&!clean(firstCell.textContent)&&(firstCell.innerHTML='<span class="visually-hidden">Feature</span>')}),Array.prototype.forEach.call(table.querySelectorAll("tr:first-child th"),function(th){th.getAttribute("scope")||th.setAttribute("scope","col")}),Array.prototype.forEach.call(table.querySelectorAll("tr th:first-child"),function(th){th.getAttribute("scope")||th.setAttribute("scope","row")})})}function fixScrollableRegions(root){var selectors=".inner-product-table, .comparison-competitors";Array.prototype.forEach.call((root||document).querySelectorAll(selectors),function(el){var overflows=el.scrollWidth>el.clientWidth+1||el.scrollHeight>el.clientHeight+1,helperLabel=el.getAttribute("aria-label")==="Scrollable product comparison";if(overflows){el.setAttribute("tabindex","0"),el.getAttribute("role")||el.setAttribute("role","region"),el.getAttribute("aria-label")||el.setAttribute("aria-label","Scrollable product comparison"),el.setAttribute("data-nest-scroll-region-a11y","true");return}(el.getAttribute("data-nest-scroll-region-a11y")==="true"||helperLabel)&&(el.getAttribute("tabindex")==="0"&&el.removeAttribute("tabindex"),helperLabel&&el.removeAttribute("aria-label"),el.getAttribute("role")==="region"&&el.getAttribute("data-nest-scroll-region-a11y")==="true"&&el.removeAttribute("role"),el.removeAttribute("data-nest-scroll-region-a11y"))})}function fixLinkAccessibleNames(root){var selectors=['.large-tile-text > p:nth-child(2) > b > a[rel="noopener"][target="_blank"]','a[title="Read more customer reviews"]','a[title="More Shipping Details"]','a[title="Nest Bedding Warranty"]'].join(",");Array.prototype.forEach.call((root||document).querySelectorAll(selectors),function(link){clean(link.textContent)&&link.removeAttribute("aria-label")})}function apply(root){fixHeaderLandmarks(root),fixProductSpecs(root),fixAggregateStars(root),fixTables(root),fixScrollableRegions(root),fixLinkAccessibleNames(root)}function schedule(root){window.clearTimeout(schedule.timer),schedule.timer=window.setTimeout(function(){apply(root||document)},80)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",function(){apply(document)},{once:!0}):apply(document),[250,800,1800,3500,6e3].forEach(function(delay){window.setTimeout(function(){apply(document)},delay)}),window.MutationObserver&&document.body&&new MutationObserver(function(mutations){for(var i=0;i<mutations.length;i+=1)if(mutations[i].type==="attributes"||mutations[i].addedNodes&&mutations[i].addedNodes.length){schedule(document);break}}).observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["aria-label"]})})();
2//# sourceMappingURL=/cdn/shop/t/582/assets/ada-scanner-remediation-20260731.js.map?v=37735515895955831701790198821

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.