const v = await eda.pcb_PrimitiveVia.getAll(); const l = await eda.pcb_PrimitiveLine.getAll(); let ui = []; for (const m of document.querySelectorAll('[class*="modal"],[class*="Modal"],[class*="progress"],[class*="Progress"]')) { const t=(m.innerText||'').trim(); if (t && t.length<200 && m.offsetParent!==null) ui.push(t.replace(/\s+/g,' ')); } return {vias: v.length, lines: l.length, ui: [...new Set(ui)].slice(0,4)};