// तुरंत स्कैन करने के लिए यह कोड Console में paste करें (function(){ var r = { scannedAt: new Date().toISOString(), url: location.href, sections: {} }; // Endpoints var ep = []; document.querySelectorAll('form[action]').forEach(f => ep.push({url:f.action, method:(f.method||'GET').toUpperCase(), source:'form', id:f.id})); document.querySelectorAll('[data-method]').forEach(el => { if(el.href) ep.push({url:el.href, method:el.dataset.method.toUpperCase(), source:'link'}); }); performance.getEntriesByType('resource').forEach(x => { if(x.name.includes('techwb.in')) ep.push({url:x.name, method:'GET', source:'perf'}); }); r.sections.endpoints = ep; // Functions var fn = new Set(); var st = Array.from(document.querySelectorAll('script')).filter(s=>!s.src).map(s=>s.textContent).join('\n'); [/function\s+([a-zA-Z_$][\w$]*)\s*\(/g, /window\.([a-zA-Z_$][\w$]*)\s*=\s*function/g].forEach(p=>{let m;while((m=p.exec(st))!==null)fn.add(m[1]);}); r.sections.functions = Array.from(fn).sort(); // Routes var rt = new Set(); document.querySelectorAll('a[href]').forEach(a=>{if(a.href.includes('techwb.in'))rt.add(a.href.replace(/https?:\/\/techwb\.in/,'').split('?')[0]);}); r.sections.routes = Array.from(rt).sort(); // Alpine r.sections.alpine = []; document.querySelectorAll('[x-data]').forEach(el=>r.sections.alpine.push({tag:el.tagName, id:el.id, xData:el.getAttribute('x-data').substring(0,150)})); // Buttons r.sections.buttons = []; document.querySelectorAll('button, a.btn').forEach(b=>{if(b.innerText.trim())r.sections.buttons.push({text:b.innerText.trim().substring(0,40), id:b.id, class:b.className.substring(0,60)});}); // Forms r.sections.forms = []; document.querySelectorAll('form').forEach(f=>r.sections.forms.push({id:f.id, action:f.action, method:f.method})); // Modals r.sections.modals = []; document.querySelectorAll('.modal').forEach(m=>r.sections.modals.push({id:m.id, title:(m.querySelector('.modal-title')||{}).innerText||''})); // Config r.sections.appConfig = window.appConfig || null; // Download var blob = new Blob([JSON.stringify(r, null, 2)], {type:'application/json'}); var a = document.createElement('a'); a.href = URL.createObjectURL(blob); a.download = 'techwb-structure-' + Date.now() + '.json'; a.click(); console.log('✅ Scan complete! File downloaded.'); console.log(r); return r; })();