chore: 移除探测用临时脚本
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
opencli --profile 74u3g3us browser wt eval "JSON.stringify({ hasWT: !!window.__dshWorktable, active: window.__dshWorktable ? window.__dshWorktable.splitStore.active : null, consoleEls: document.querySelectorAll('.dsh-wt_console').length, dividerEls: document.querySelectorAll('.dsh-wt_splitDivider').length, url: location.href.slice(0, 60) })"
|
||||
@@ -1,2 +0,0 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
opencli --profile 74u3g3us browser wt eval "(() => { const s = window.__dshWorktable && window.__dshWorktable.splitStore; const d = document.querySelector('.dsh-wt_splitDivider'); if (!s || !d) return 'no'; const before = s.chatW; const r = d.getBoundingClientRect(); const x = r.left + 2; const y = r.top + 300; const pd = new PointerEvent('pointerdown', { bubbles: true, clientX: x, clientY: y, pointerId: 7, button: 0, isPrimary: true }); d.dispatchEvent(pd); window.dispatchEvent(new PointerEvent('pointermove', { bubbles: true, clientX: x - 40, clientY: y, pointerId: 7 })); window.dispatchEvent(new PointerEvent('pointerup', { bubbles: true, clientX: x - 40, clientY: y, pointerId: 7 })); return JSON.stringify({ before: before, after: s.chatW }); })()"
|
||||
@@ -1,2 +0,0 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
opencli --profile 74u3g3us browser wt eval "(() => { const s = window.__dshWorktable && window.__dshWorktable.splitStore; const d = document.querySelector('.dsh-wt_splitDivider'); if (!s || !d) return 'no'; const before = s.chatW; const r = d.getBoundingClientRect(); const x = r.left + 2; const y = r.top + 300; const ev = (type, cx) => new PointerEvent(type, { bubbles: true, clientX: cx, clientY: y, pointerId: 7, button: 0, isPrimary: true }); d.dispatchEvent(ev('pointerdown', x)); d.dispatchEvent(ev('pointermove', x - 60)); d.dispatchEvent(ev('pointerup', x - 60)); return JSON.stringify({ before: before, after: s.chatW, dividerX: Math.round(r.left), viewportW: window.innerWidth }); })()"
|
||||
@@ -1,4 +0,0 @@
|
||||
$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 x = s.geom.right - s.chatW - 2; const y = (s.geom.top + s.geom.bottom) / 2; const el = document.elementFromPoint(x, y); const chain = []; let n = el, d = 0; while (n && d < 4) { chain.push(n.tagName + '.' + String(n.className).split(' ').slice(0, 3).join('.') + ' z=' + getComputedStyle(n).zIndex); n = n.parentElement; d++; } return JSON.stringify({ x: Math.round(x), y: Math.round(y), hit: chain }); })()"
|
||||
Start-Sleep -Milliseconds 400
|
||||
opencli --profile 74u3g3us browser wt eval "(() => { const s = window.__dshWorktable && window.__dshWorktable.splitStore; if (!s || !s.geom) return 'no-s'; const rects = []; const d = document.querySelector('.dsh-wt_splitDivider'); if (d) { const r = d.getBoundingClientRect(); const cx = r.left + r.width / 2; const cy = r.top + r.height / 2; const el = document.elementFromPoint(cx, cy); rects.push({ divider: [Math.round(r.left), Math.round(r.top), Math.round(r.width), Math.round(r.height)].join(','), atCenter: el && (el.classList.contains('dsh-wt_splitDivider') ? 'DIVIDER' : el.tagName + '.' + String(el.className).split(' ').slice(0, 2).join('.')) }); } return JSON.stringify({ chatW: s.chatW, right: Math.round(s.geom.right), rects }); })()"
|
||||
@@ -1,2 +0,0 @@
|
||||
$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 }); })()"
|
||||
@@ -1,6 +0,0 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
opencli --profile 74u3g3us browser wt eval "(() => { const s = window.__dshWorktable && window.__dshWorktable.splitStore; return s && s.active ? JSON.stringify({ right: s.geom && s.geom.right, chatW: s.chatW, bar: BARH_dummy || undefined }) : 'no-split'; })()"
|
||||
Start-Sleep -Milliseconds 300
|
||||
opencli --profile 74u3g3us browser wt eval "(() => { const s = window.__dshWorktable && window.__dshWorktable.splitStore; if (!s || !s.active || !s.geom) return 'no-active'; const x = s.geom.right - s.chatW - 2; const y = (s.geom.top + s.geom.bottom) / 2; const el = document.elementFromPoint(x, y); const arr = []; let n = el; let d = 0; while (n && d < 3) { arr.push(n.tagName + '.' + String(n.className).split(' ').slice(0,3).join('.')); n = n.parentElement; d++; } return JSON.stringify({ x: Math.round(x), y: Math.round(y), hit: arr }); })()"
|
||||
Start-Sleep -Milliseconds 300
|
||||
opencli --profile 74u3g3us browser wt eval "(() => { const s = window.__dshWorktable && window.__dshWorktable.splitStore; if (!s || !s.geom) return 'no'; const x = s.geom.right - s.chatW - 2; const y = (s.geom.top + s.geom.bottom) / 2; const el = document.elementFromPoint(x, y); return el ? (el.closest('.dsh-wt_splitDivider') ? 'hit-divider' : el.closest('[data-phase]') ? 'hit-host-chat' : el.closest('.dsh-wt_pane') ? 'hit-pane' : 'hit-other:' + el.tagName) : 'null'; })()"
|
||||
@@ -1,4 +0,0 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
opencli --profile 74u3g3us browser wt unbind 2>$null | Out-Null
|
||||
Start-Sleep -Milliseconds 400
|
||||
opencli --profile 74u3g3us browser wt bind
|
||||
@@ -1,2 +0,0 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
opencli --profile 74u3g3us browser wt eval "(() => { const s = window.__dshWorktable && window.__dshWorktable.splitStore; if (!s || !s.spec) return 'no'; return JSON.stringify({ id: s.spec.id, title: s.spec.title, top: s.spec.top ? s.spec.top.length : null, mainLen: s.spec.main ? s.spec.main.length : null, chatW: s.chatW, chatWDef: s.spec.chatWidth }); })()"
|
||||
@@ -1,4 +0,0 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
opencli --profile 74u3g3us browser wt eval "(() => { const root = document.querySelector('[data-phase]'); if (!root) return 'no-root'; const out = []; let el = root; let d = 0; while (el && d < 8) { const cs = getComputedStyle(el); out.push({ tag: el.tagName, z: cs.zIndex, pos: cs.position, cls: String(el.className).slice(0, 40) }); el = el.parentElement; d++; } return JSON.stringify(out); })()"
|
||||
Start-Sleep -Milliseconds 300
|
||||
opencli --profile 74u3g3us browser wt eval "(() => { const divs = Array.from(document.querySelectorAll('.dsh-wt_splitDivider')); return JSON.stringify({ count: divs.length, one: divs[0] ? { z: getComputedStyle(divs[0]).zIndex, pos: getComputedStyle(divs[0]).position, rect: (() => { const r = divs[0].getBoundingClientRect(); return [Math.round(r.left), Math.round(r.top), Math.round(r.width), Math.round(r.height)].join(','); })() } : null }); })()"
|
||||
Reference in New Issue
Block a user