Closed Mr-Quin closed 5 months ago
When a website simultaneously removes and adds an element that matches the query, the additional/removal will not be detected, depending on the order of operation.
For example, if the media query is video, and the website first moves the , then immediately adds another , only the removal will be detected, because the detection logic breaks too early.
video
break
https://github.com/Mr-Quin/danmaku-anywhere/blob/a89ba754054602d4b4c43513e6c12b28608fc149/packages/danmaku-anywhere/src/content/hooks/useNodeMonitor.ts#L68C21-L68C33
Removing the break statement will allow it to detect subsequent operations.
When a website simultaneously removes and adds an element that matches the query, the additional/removal will not be detected, depending on the order of operation.
For example, if the media query is
video
, and the website first moves thehttps://github.com/Mr-Quin/danmaku-anywhere/blob/a89ba754054602d4b4c43513e6c12b28608fc149/packages/danmaku-anywhere/src/content/hooks/useNodeMonitor.ts#L68C21-L68C33
Removing the break statement will allow it to detect subsequent operations.