PageSourceSearch

https://socialapples.com/wp-content/cache/autoptimize/js/autoptimi…28e9da804de9ee421f9841691e329.js?ver=2.0.88

js socialapples.com collected 2026-09-25 18:37:49 UTC 1,941 bytes, 9 lines download raw bytes

1(function(){'use strict';function run(){var tocContainers=document.querySelectorAll('#ez-toc-container, .ez-toc-split-section, .ez-toc-widget-sticky-container');if(!tocContainers.length)return;var anchorIds=[];for(var c=0;c<tocContainers.length;c++){var nav=tocContainers[c].querySelector('nav');if(!nav)continue;var tocLinks=nav.querySelectorAll('a.ez-toc-link');for(var i=0;i<tocLinks.length;i++){var href=tocLinks[i].getAttribute('href')||tocLinks[i].getAttribute('data-href')||'';var hashIdx=href.indexOf('#');var id=hashIdx>=0?href.substring(hashIdx+1):'';try{id=decodeURIComponent(id);}catch(e){}
2if(id&&anchorIds.indexOf(id)===-1){anchorIds.push(id);}}}
3if(!anchorIds.length)return;var allHeadings=document.querySelectorAll('h1, h2, h3, h4, h5, h6');var contentHeadings=[];for(var j=0;j<allHeadings.length;j++){var el=allHeadings[j];if(el.closest('#ez-toc-container, .ez-toc-split-section')||el.closest('.ez-toc-widget-sticky-container'))continue;if(el.querySelector('span.ez-toc-section'))continue;contentHeadings.push(el);}
4if(!contentHeadings.length)return;function normalizeText(str){if(typeof str!=='string')return'';return str.replace(/\s+/g,' ').trim();}
5if(contentHeadings.length===anchorIds.length){for(var k=0;k<contentHeadings.length;k++){injectSpan(contentHeadings[k],anchorIds[k]);}
6return;}
7for(var m=0;m<tocLinks.length;m++){var linkText=normalizeText(tocLinks[m].textContent);var anchorId=anchorIds[m];for(var n=0;n<contentHeadings.length;n++){var h=contentHeadings[n];if(h._eztocMatched)continue;if(normalizeText(h.textContent)===linkText){injectSpan(h,anchorId);h._eztocMatched=true;break;}}}}
8function injectSpan(heading,id){if(heading.querySelector('span.ez-toc-section'))return;var span=document.createElement('span');span.className='ez-toc-section';span.id=id;heading.insertBefore(span,heading.firstChild);}
9if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',run);}else{run();}})();

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.