Repository navigation
Commit ab08a77
committed
fix(userscript): keep download buttons working after result re-renders
Site handlers observed a replaceable container node (e.g. the pack table's
parent on xdcc.info). When a filter such as "language" re-rendered the
results, the observer kept watching a detached node and injected buttons
never came back until a full reload.
Observe document.body in all dynamic-site handlers so the observer
survives container replacement, re-query .results inside processRocksTable
for the same reason, and guard observer callbacks against firing during
page teardown.
Bump userscript version to 2026-09-20-1.1 parent 18f1c04 commit ab08a77
2 files changed
Lines changed: 52 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
82 | 108 | | |
83 | 109 | | |
84 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
143 | 147 | | |
144 | 148 | | |
145 | 149 | | |
| |||
891 | 895 | | |
892 | 896 | | |
893 | 897 | | |
894 | | - | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
895 | 901 | | |
896 | 902 | | |
897 | 903 | | |
| |||
945 | 951 | | |
946 | 952 | | |
947 | 953 | | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
953 | 959 | | |
954 | 960 | | |
955 | 961 | | |
| |||
992 | 998 | | |
993 | 999 | | |
994 | 1000 | | |
995 | | - | |
| 1001 | + | |
| 1002 | + | |
996 | 1003 | | |
997 | 1004 | | |
998 | 1005 | | |
| |||
1107 | 1114 | | |
1108 | 1115 | | |
1109 | 1116 | | |
1110 | | - | |
1111 | | - | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
1112 | 1120 | | |
1113 | 1121 | | |
1114 | 1122 | | |
| |||
1129 | 1137 | | |
1130 | 1138 | | |
1131 | 1139 | | |
1132 | | - | |
1133 | | - | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
1134 | 1144 | | |
1135 | 1145 | | |
1136 | 1146 | | |
| |||
1170 | 1180 | | |
1171 | 1181 | | |
1172 | 1182 | | |
1173 | | - | |
1174 | | - | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
1175 | 1186 | | |
1176 | 1187 | | |
1177 | 1188 | | |
| |||
0 commit comments