3 lines
907 B
PowerShell
3 lines
907 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|||
|
|
opencli --profile 74u3g3us browser wt eval "(() => { const s = window.__dshWorktable && window.__dshWorktable.splitStore; if (!s || !s.active || !s.geom) return 'no-active'; const d = document.querySelector('.dsh-wt_splitDivider'); if (!d) return 'no-divider-el'; const r = d.getBoundingClientRect(); const cx = r.left + r.width / 2; const cy = r.top + r.height / 2; const el = document.elementFromPoint(cx, cy); const chain = []; let n = el, dep = 0; while (n && dep < 4) { chain.push(n.tagName + '.' + String(n.className).split(' ').slice(0, 3).join('.') + '|z=' + getComputedStyle(n).zIndex); n = n.parentElement; dep++; } return JSON.stringify({ dividerRect: [Math.round(r.left), Math.round(r.top), Math.round(r.width), Math.round(r.height)].join(','), atCenter: el && (el.classList && el.classList.contains('dsh-wt_splitDivider')) ? 'DIVIDER' : 'OTHER', chain }); })()"
|