You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
This pull request fixes an issue where the dislike count on YouTube videos was being repeated multiple times, leading to incorrect display and a poor user experience.
Problem:
The dislike count was being updated and displayed repeatedly, which resulted in the same number being shown multiple times in a row.
This issue also caused the "dislike" button to become unresponsive in some cases, preventing users from interacting with it.
Solution:
I adjusted the makeUI function to check whether the dislike count element already exists before updating it. This ensures that the UI is only updated when necessary, preventing the issue of repeated display.
Added a check to ensure that the text content is only updated if it has changed, which further optimizes performance and prevents unnecessary UI updates.
Testing:
I tested this solution on both regular YouTube videos and YouTube Shorts to ensure that the dislike count is displayed correctly and updated only when necessary.
The "dislike" button remains fully functional after these changes.
Please review the changes and let me know if there are any further adjustments needed. Thank you for your consideration!
0 commit comments