Commit 702cd94
Fix mark-watched button crash on channel videos tab (#247)
On channel pages, #video-title's parent element is deeply nested inside
#dismissible > #details > #meta > h3 > a, not a direct child of the
button container. This caused insertBefore to throw "Child to insert
before is not a child of this node". Now checks if the reference node
is a direct child first, and falls back to inserting into #meta area.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent cd2e27c commit 702cd94
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
83 | 94 | | |
84 | 95 | | |
85 | 96 | | |
0 commit comments