mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix fold comments only run once
This commit is contained in:
parent
8a21dad3d1
commit
cbf031e7e7
@ -35,11 +35,10 @@ const entry = async () => {
|
|||||||
button?.click()
|
button?.click()
|
||||||
}
|
}
|
||||||
if (!existingComment) {
|
if (!existingComment) {
|
||||||
const [observer] = childListSubtree(card, () => {
|
childListSubtree(card, () => {
|
||||||
const panel = dq(card, commentSelector)
|
const panel = dq(card, commentSelector)
|
||||||
if (panel) {
|
if (panel) {
|
||||||
injectToComment(card, handler)
|
injectToComment(card, handler)
|
||||||
observer.disconnect()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user