const fs = require('fs'); const path = require('path'); const os = require('os'); const dump = JSON.parse(fs.readFileSync( path.join(os.homedir(), '.gemini', 'antigravity', 'bridge', 'dump_html.json'), 'utf-8' )); const bodyStr = JSON.stringify(dump.body); // Find all unique tag names const tagMatches = bodyStr.match(/"tag":"[a-z0-9]+"/g) || []; const uniqueTags = [...new Set(tagMatches)]; console.log('=== Unique DOM tags ==='); console.log(uniqueTags.sort().join('\n')); // Check for pipe characters (markdown table syntax) console.log('\n=== Pipe | in text content ==='); const pipeMatches = [...bodyStr.matchAll(/"text":"[^"]*\|[^"]*"/g)]; console.log(`Found ${pipeMatches.length} text nodes with pipe |`); pipeMatches.slice(0, 5).forEach(m => console.log(' ', m[0].substring(0, 120))); // Check for table-related class names console.log('\n=== Table-related classes ==='); const classMatches = bodyStr.match(/"cls":"[^"]*"/g) || []; const tableClasses = classMatches.filter(c => /table|grid|cell|col|row/i.test(c)); console.log(`Found ${tableClasses.length} table-related classes`); [...new Set(tableClasses)].slice(0, 10).forEach(c => console.log(' ', c));