Anarios / return-youtube-dislike

Chrome extension to return youtube dislikes
https://returnyoutubedislike.com/
GNU General Public License v3.0
12.49k stars 555 forks source link

Dislikes still not showing up in the latest version of the extension (issue with rolling like count) #950

Closed user73185 closed 10 months ago

user73185 commented 10 months ago

Have you tried to find similar open issues?

Browser

Firefox

Browser Version

118

Extension or Userscript?

Extension

Extension/Userscript Version

v3.0.0.11

Video link where you see the problem

Happens on every video

What happened?

I still can't see the dislike counter. My account got selected for an a/b testing feature for "rolling like count", where the like counter updates in real time. I think that's the reason why the extension still doesn't work for me, because if I switch to an account that doesn't have the rolling likes experiment, or open a private window, then the extension works again. dislikes

How to reproduce/recreate?

Open any video with an account that has the rolling like count experiment enabled.

Will you be available for follow-up questions to help developers diagnose & fix the issue?

Yes

raspin0 commented 10 months ago

Have you tried to find similar open issues? Apparently, not

This looks like a duplicate of https://github.com/Anarios/return-youtube-dislike/issues/944

tazlsucks commented 10 months ago

This is not a duplicate, this person seems to have a different bug with the updated version of the extension.

user73185 commented 10 months ago

The issue you linked does not mention the rolling likes experiment, also it is for the previous version of the extension (v3.0.0.10). I opened this issue for the latest version (v3.0.0.11).

tdreams2 commented 10 months ago

I found a solution and the dislike count appears but I'm not sure if it's reliable this way or not

I changed this line of code in createDislikeTextContainer() function: const textNodeClone = (getLikeButton().querySelector("button > div[class*='cbox']") || getLikeButton().querySelector('div > span[role="text"]').parentNode).cloneNode(true);

changed to this: const textNodeClone = (getLikeButton() || getLikeButton().parentNode).cloneNode(true);

Anarios commented 10 months ago

Looks like you're receiving an even different UI version (i.e. an experimental A-B testing YouTube UI).

Anarios commented 10 months ago

Closing as clone of #946