mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Add data-did for compatibility (#3821)
This commit is contained in:
parent
382c272a7c
commit
350a0dac34
@ -87,6 +87,7 @@ const parseCard = async (element: HTMLElement): Promise<FeedsCard> => {
|
|||||||
combineText(getText(modules.module_dynamic, cardType), getText(repostDynamicModule, cardType))
|
combineText(getText(modules.module_dynamic, cardType), getText(repostDynamicModule, cardType))
|
||||||
}
|
}
|
||||||
card.text = await card.getText()
|
card.text = await card.getText()
|
||||||
|
card.element.setAttribute('data-did', card.id)
|
||||||
// 等待第一次 Vue 渲染完成
|
// 等待第一次 Vue 渲染完成
|
||||||
await selectAll(() => element.querySelectorAll('.bili-dyn-item *'), { queryInterval: 50 })
|
await selectAll(() => element.querySelectorAll('.bili-dyn-item *'), { queryInterval: 50 })
|
||||||
return card
|
return card
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user