PageSourceSearch

https://wnymedia.net/wp-content/plugins/wnymedia-live-header/assets/related.js?ver=1.4.0

js wnymedia.net collected 2026-10-01 10:31:58 UTC 921 bytes, 16 lines download raw bytes

1(() => {
2  function start(){
3    const native=document.querySelector('.td_block_related_posts');
4    const template=document.getElementById('wny-keep-reading-template');
5    if(!native || !template || document.querySelector('.wny-keep-reading'))return;
6    native.before(template.content.cloneNode(true));
7    native.classList.add('wny-has-mobile-related');
8    const section=native.previousElementSibling, button=section.querySelector('.wny-related-more');
9    if(button)button.addEventListener('click',()=>{
10      const expanded=button.getAttribute('aria-expanded')==='true';
11      section.querySelectorAll('.wny-related-row').forEach((row,i)=>{if(i>=3)row.hidden=expanded;});
12      button.setAttribute('aria-expanded',String(!expanded));button.textContent=expanded?'More stories':'Fewer stories';
13    });
14  }
15  if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',start);else start();
16})();

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.