Every capital in the Middle East, the Caucasus and Central Asia, with Bahrain on the Gulf's cables

The MCP server reads a dropdown as its selected option, so a long network list no longer crowds the traceroute out of a report.
This commit is contained in:
Frederic Jung 2026-11-03 20:48:15 +01:00
parent 296392fb96
commit 894307a35c
No known key found for this signature in database
20 changed files with 391 additions and 17 deletions

View file

@ -17,6 +17,8 @@
if (n.nodeType === 3) { out.push(n.nodeValue); return; }
if (n.nodeType !== 1 || n.hidden || /^(SCRIPT|STYLE|SVG|CANVAS)$/i.test(n.tagName)) return;
if (n.tagName === 'BR') { out.push('\n'); return; }
// A dropdown reads as its choice: hundreds of options would crowd out the rest (the catalog lists them).
if (n.tagName === 'SELECT') { const o = n.options[n.selectedIndex]; out.push(' ', o ? o.text : '', ' '); return; }
// Blocks get their own line; inline tags a space, so "Revenue<b>$2k</b>" does not read as one word.
const sep = BLOCK.test(n.tagName) ? '\n' : ' ';
out.push(sep);