revanced-patches icon indicating copy to clipboard operation
revanced-patches copied to clipboard

bug: YouTube, glowing like button, return YouTube dislike

Open OldManJenkins12 opened this issue 1 year ago • 4 comments

Bug description

When YouTubers says "smash the like button" or "like button" the like button glows, however with return YouTube dislike enabled, the glow dosent perfectly border the like/dislike buttons. Screenshot_20231217-103332

Error logs

I don't think this is needed here

Solution

The glow should either border both the like and dislike buttons, or just border the like button.

Additional context

No response

Acknowledgements

  • [ ] This issue is not a duplicate of an existing bug report.
  • [X] I have chosen an appropriate title.
  • [X] All requested information has been provided properly.

OldManJenkins12 avatar Dec 17 '23 15:12 OldManJenkins12

https://github.com/ReVanced/revanced-patches/issues/41

oSumAtrIX avatar Dec 17 '23 15:12 oSumAtrIX

I'm not asking for the remeoval of it, I'm just simply asking for it to be fixed

OldManJenkins12 avatar Dec 17 '23 23:12 OldManJenkins12

Try turning on compact layout in RYD settings and see if that fixes the alignment.

If that does fix it, then it can be fixed by patching the code doing the animated glow and add the RYD left separator width to the layout calculations.

Edit: compact layout helps but the alignment is still not 100% correct.

LisoUseInAIKyrios avatar Dec 17 '23 23:12 LisoUseInAIKyrios

This was an A/B test when the issue was opened, but now appears to have been widely released.

This only appears in some videos with like interactions, examples I found include: https://youtu.be/dtp6b76pMak?t=267 (Between 4:27 and 4:33)

Since glow animation is a litho component, the width of an already created view cannot be changed.

So I changed it to simply hide the glow animation when RYD is enabled: https://github.com/inotia00/revanced-integrations/commit/c1dadf9a9d2ce3d57b564f4b4350272f9b32c7a7

I hope this helps someone.

inotia00 avatar May 09 '24 11:05 inotia00

It appears YT made some changes and this now works correctly (or by coincidence this was fixed with the last RYD patch changes)

Using YT 19.11:

Like highlight

LisoUseInAIKyrios avatar May 31 '24 11:05 LisoUseInAIKyrios