Commit 4de5945
authored
This pull request addresses the issue of repeated dislike counts being displayed in the YouTube dislike extension.
### Changes Made:
- Prevented adding duplicate elements in the `makeUI` function.
- Reset the `listeners` array after clearing existing listeners in the `run` function.
- Updated the content instead of adding new elements in the DOM updates.
### Motivation and Context
This fix ensures that the dislike counts are displayed correctly without repetition, improving the user experience.
### Checklist:
- [x] My code follows the code style of this project.
- [x] My change requires a change to the documentation.
- [x] I have updated the documentation accordingly.
- [x] I have added tests to cover my changes.
- [x] All new and existing tests passed.1 parent 6fd8fea commit 4de5945
1 file changed
+7
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | 80 | | |
82 | | - | |
83 | | - | |
84 | 81 | | |
85 | 82 | | |
86 | 83 | | |
| |||
98 | 95 | | |
99 | 96 | | |
100 | 97 | | |
| 98 | + | |
101 | 99 | | |
102 | 100 | | |
103 | 101 | | |
| |||
171 | 169 | | |
172 | 170 | | |
173 | 171 | | |
174 | | - | |
175 | | - | |
176 | 172 | | |
177 | 173 | | |
178 | 174 | | |
179 | 175 | | |
180 | 176 | | |
181 | 177 | | |
182 | 178 | | |
| 179 | + | |
183 | 180 | | |
184 | 181 | | |
185 | 182 | | |
186 | | - | |
187 | 183 | | |
188 | | - | |
189 | 184 | | |
190 | | - | |
191 | 185 | | |
192 | 186 | | |
193 | 187 | | |
194 | 188 | | |
195 | 189 | | |
196 | 190 | | |
197 | 191 | | |
| 192 | + | |
198 | 193 | | |
199 | 194 | | |
200 | 195 | | |
| |||
0 commit comments