javascript:(async()=>{const r=/(?<=(\"|%27|`))\/[a-zA-Z0-9_?&=\/\-#\.]*(?=(\"|'|%60))/g,e=new Set,t=document.getElementsByTagName("script"),n=t=>{const a=t.matchAll(r);for(const t of a)e.add(t[0])};await Promise.all(Array.from(t).map(async t=>{try{t.src?n(await(await fetch(t.src)).text()):n(t.innerHTML)}catch(t){console.warn("Script fetch error:",t)}})),n(document.documentElement.outerHTML);const d=location.origin,paths=[...e];const categorizeEndpoints=paths=>{const categories={apis:[],js:[],html:[],css:[],json:[],xml:[],images:[],other:[]};return paths.forEach(p=>{if(p.match(/\.js$/i))categories.js.push(p);else if(p.match(/\.html?$/i))categories.html.push(p);else if(p.match(/\.css$/i))categories.css.push(p);else if(p.match(/\.json$/i))categories.json.push(p);else if(p.match(/\.xml$/i))categories.xml.push(p);else if(p.match(/\.(png|jpg|jpeg|gif|svg|webp|ico)$/i))categories.images.push(p);else if(p.match(/^\/api\//i)||p.match(/^\/v\d+\//i))categories.apis.push(p);else categories.other.push(p)}),categories},cats=categorizeEndpoints(paths),win=window.open("","_blank","width=1200,height=700,scrollbars=yes");if(!win)return alert("Popup blocked. Please allow popups.");const style='';const html='Endpoint Extractor - Rezy Dev'+style+'

Endpoint Extractor

Found '+paths.length+' endpoints

'+(cats.apis.length?'':'')+(cats.js.length?'':'')+(cats.html.length?'':'')+(cats.css.length?'':'')+(cats.json.length?'':'')+(cats.xml.length?'':'')+(cats.images.length?'':'')+(cats.other.length?'':'')+'
';win.document.write(html);win.document.close();const populateList=(id,items)=>{const ul=win.document.getElementById(id);items.forEach(p=>{const li=win.document.createElement("li");const a=win.document.createElement("a");a.href=d+p;a.target="_blank";a.textContent=p;li.appendChild(a);ul.appendChild(li)})};populateList("list-all",paths);populateList("list-apis",cats.apis);populateList("list-js",cats.js);populateList("list-html",cats.html);populateList("list-css",cats.css);populateList("list-json",cats.json);populateList("list-xml",cats.xml);populateList("list-images",cats.images);populateList("list-other",cats.other);win.document.querySelectorAll(".tab-btn").forEach(b=>b.onclick=function(){win.document.querySelectorAll(".tab-content").forEach(t=>t.classList.remove("active"));win.document.querySelectorAll(".tab-btn").forEach(t=>t.classList.remove("active"));win.document.getElementById("tab-"+b.getAttribute("data-tab")).classList.add("active");b.classList.add("active")});win.document.getElementById("cpbtn").onclick=function(){const ul=win.document.querySelector(".tab-content.active ul");const items=Array.from(ul.querySelectorAll("li a")).map(a=>a.textContent).join("\n");const ta=win.document.createElement("textarea");ta.value=items;win.document.body.appendChild(ta);ta.select();win.document.execCommand("copy");win.document.body.removeChild(ta);win.alert("Copied!")};win.document.getElementById("dlbtn").onclick=function(){const ul=win.document.querySelector(".tab-content.active ul");const items=Array.from(ul.querySelectorAll("li a")).map(a=>a.textContent).join("\n");const b=new Blob([items],{type:"text/plain"}),u=URL.createObjectURL(b),a=win.document.createElement("a");a.href=u;a.download="endpoints.txt";a.click();URL.revokeObjectURL(u)};win.document.getElementById("filt").oninput=function(){const f=this.value.toLowerCase();const ul=win.document.querySelector(".tab-content.active ul");ul.querySelectorAll("li").forEach(li=>{const txt=li.textContent.toLowerCase();li.style.display=txt.includes(f)?"block":"none"})}})();