PageSourceSearch

https://shiluvim.pro/popup/embed/site.js

js shiluvim.pro collected 2026-10-02 02:05:56 UTC 1,458 bytes, 9 lines download raw bytes

1;(function(){
2  var api=window.shiluvimPopups=window.shiluvimPopups||{}, openers=api.openers=api.openers||{}, queued={}, requested={};
3  api.open=function(id){ var openerId=String(id); if(openers[openerId]){ openers[openerId](); return true; } queued[openerId]=true; loadPopup(openerId); return false; };
4  api.register=function(id,opener){ var openerId=String(id); openers[openerId]=opener; if(queued[openerId]){ delete queued[openerId]; opener(); } };
5  function loadPopup(id){ if(requested[id]) return; requested[id]=true; var s=document.createElement('script'); s.async=true; s.src="https://shiluvim.pro/popup"+'/embed/popup/'+id+'.js'; document.head.appendChild(s); }
6  window.addEventListener('click',function(e){ var target=e.target; if(target && target.nodeType===3) target=target.parentElement; var trigger=target&&target.closest&&target.closest('[data-shiluvim-popup-trigger]'); if(!trigger) return; var id=trigger.getAttribute('data-shiluvim-popup-trigger')||''; if(!id) return; e.preventDefault(); api.open(id); },true);
7  function load(){ var path=location.pathname||'/'; fetch("https://shiluvim.pro/popup/api/embed/site"+'?path='+encodeURIComponent(path),{credentials:'omit'}).then(function(r){return r.ok?r.json():{ids:[]};}).then(function(data){(data.ids||[]).forEach(function(id){ loadPopup(String(id)); });}).catch(function(){}); }
8  if(document.readyState==='loading') document.addEventListener('DOMContentLoaded',load); else load();
9})();

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.