R29 列位移修正:账号详情视频列表标签列从「时长」前改为「点赞」左边

- 之前位置(时长前)按用户原话「时长前面」实现,忽略了三遍明确指示(标签在点赞左边)
- 新位置(点赞左边):data-pages.js 表头/data 行同步移动 td-tag
- 冒烟脚本 cdp-verify-r29.mjs 断言更新:thTagIdx 6→2、tagBeforeDur→tagBeforeLike、rowCells[6]→rowCells[2]
- 版本 ?v=20260903o→p;CDP PASS + 视觉截图确认
This commit is contained in:
maogeigei committed 2026-09-03 16:17:33 +08:00
1 parent 4b20eff1a2
commit 2aa13bf900
3 files changed
+9 -8

No files matched your search

@@ -30,9 +30,10 @@ const out = await ev(`(() => {
return {
ths, // 完整表头文本序列
thTagIdx: ths.indexOf('标签'),
likeIdx: ths.indexOf('点赞'),
durIdx: ths.indexOf('时长'),
thTagW: thTag ? Math.round(thTag.getBoundingClientRect().width) : null,
tagBeforeDur: ths.indexOf('标签') === ths.indexOf('时长') - 1,
tagBeforeLike: ths.indexOf('标签') === ths.indexOf('点赞') - 1,
// 数据行
rowCells: cells.map((c) => ({ cls: c.className, txt: (c.textContent || '').trim().slice(0, 24) })),
tagTdText: tagTd ? (tagTd.textContent || '').trim() : null,
@@ -44,9 +45,9 @@ const out = await ev(`(() => {
})()`);
console.log(JSON.stringify(out, null, 1));
const ok = out && !out.__err
&& out.ths.length === 9 && out.thTagIdx === 6 && out.durIdx === 7 && out.tagBeforeDur === true
&& out.ths.length === 9 && out.thTagIdx === 2 && out.likeIdx === 3 && out.durIdx === 7 && out.tagBeforeLike === true
&& out.thTagW === 40
&& out.rowCells.length === 9 && out.rowCells[6].cls.includes('td-tag')
&& out.rowCells.length === 9 && out.rowCells[2].cls.includes('td-tag')
&& !!out.tagTdText && out.tagTdText.length > 0
&& !!out.tagTdTitle && out.tagTdTitle.includes('#') && out.tagTdTitle.length >= out.tagTdText.length
&& out.tagTdClips === true && out.tagTdW === 40 && out.hasNumClass === false;