PageSourceSearch

https://www.3chi.com/wp-content/cache/min/1/wp-content/themes/flat…ar-remove-parent-cat-href.js?ver=1790090394

js 3chi.com collected 2026-09-25 23:51:36 UTC 694 bytes, 1 lines download raw bytes

1function removeParentCatAnchorHref(){document.addEventListener('DOMContentLoaded',()=>{setTimeout(function(){const parentCats=document.querySelectorAll('div#shop-sidebar > aside.widget_product_categories > ul.product-categories > li.cat-parent.has-child');parentCats.forEach(parentCat=>{const catAnchor=parentCat.querySelector('a');catAnchor.removeAttribute('href');catAnchor.style.cursor='pointer';catAnchor.addEventListener('click',()=>{if(parentCat.classList.contains('active')){parentCat.classList.remove('active');parentCat.setAttribute('aria-expanded','false')}else{parentCat.classList.add('active');parentCat.setAttribute('aria-expanded','true')}})})},250)})};removeParentCatAnchorHref()

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.