1document.addEventListener('DOMContentLoaded', () => { 2 // Remove the 'aria-hidden' attribute from the targeted elements 3 document.querySelectorAll('#block-lehigh-socialmedia .nav-item a[aria-hidden]').forEach(element => { 4 element.removeAttribute('aria-hidden'); 5 }); 6 7 // Use a MutationObserver to monitor for changes and ensure 'aria-hidden' is not re-added 8 const observer = new MutationObserver(mutations => { 9 mutations.forEach(mutation => { 10 if (mutation.type === 'attributes' && mutation.attributeName === 'aria-hidden') { 11 const target = mutation.target; 12 if (target.matches('#block-lehigh-socialmedia .nav-item a')) { 13 target.removeAttribute('aria-hidden'); 14 } 15 } 16 }); 17 }); 18 19 // Observe all a.nav-link elements for attribute changes 20 document.querySelectorAll('#block-lehigh-socialmedia .nav-item a').forEach(element => { 21 observer.observe(element, { attributes: true }); 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.