19 lines
794 B
JavaScript
19 lines
794 B
JavaScript
// scripts/inspect-live-d3ro-domain.js
|
|
const { chromium } = require('@playwright/test');
|
|
|
|
async function inspectLive() {
|
|
const browser = await chromium.launch({ channel: 'msedge', headless: true });
|
|
const page = await browser.newPage();
|
|
console.log('Navigating to https://d3ro.chanpaca.net...');
|
|
await page.goto('https://d3ro.chanpaca.net', { waitUntil: 'networkidle', timeout: 30000 });
|
|
|
|
const title = await page.title();
|
|
console.log('Live Page Title:', title);
|
|
|
|
const links = await page.locator('a').evaluateAll(els => els.map(e => ({ text: e.innerText.replace(/\s+/g, ' ').trim(), href: e.href })));
|
|
console.log('ALL LINKS ON d3ro.chanpaca.net:', JSON.stringify(links.filter(l => l.text || l.href), null, 2));
|
|
|
|
await browser.close();
|
|
}
|
|
|
|
inspectLive().catch(console.error);
|