1 2 const runWhenIdle = (callback) => { 3 if ('requestIdleCallback' in window) { 4 requestIdleCallback(callback); 5 } else { 6 setTimeout(callback, 1000); 7 } 8 }; 9 runWhenIdle(() => { 10 let mobileCtaLinks = document.querySelectorAll(".mobile-cta-link.mobile-cta-link-icon"); 11 let navRightLink = document.querySelector(".nav-link.nav-right-link"); 12 let navLeftLink = document.querySelector(".nav-link.nav-left-link"); 13 if (mobileCtaLinks.length < 3 || !navRightLink || !navLeftLink) { 14 return; 15 } 16 if (navRightLink.href.includes("/locations/") || navLeftLink.href.includes("/locations/")) { 17 return; 18 } 19 else { 20 mobileCtaLinks[0].setAttribute("href", navRightLink.href); 21 mobileCtaLinks[2].setAttribute("href", navLeftLink.href); 22 } 23 });
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.