tabview-youtube / Tabview-Youtube

Make comments and lists into tabs
MIT License
36 stars 4 forks source link

Comment count is always 0 #44

Closed Katzenwerfer closed 4 months ago

Katzenwerfer commented 4 months ago

In all videos I've tested, the comment count is always set to 0, even though that isn't the actual case. I've only been able to reproduce the issue on my main LibreWolf profile, so I haven't singled out what could be causing it. Currently using violentmonkey image

Katzenwerfer commented 4 months ago

Tested on private browsing and a container tab and it works fine. Also tried a fresh profile and the comment count displays without issues.

cyfung1031 commented 4 months ago

The problem is because of "12K" Click the three dots to change the page language. Check which language is checked.

Screen Shot 2024-06-09 at 1 36 17 Screen Shot 2024-06-09 at 1 36 23
Katzenwerfer commented 4 months ago

Supposedly it's set to "English (US)" on my end. Also tried changing to other languages and regions, but same results.

cyfung1031 commented 4 months ago

Have you disabled all other extensions / plugins?

Katzenwerfer commented 4 months ago

I did earlier today. Behavior persisted nonetheless. Something else I tried was logging out of my account and surprisingly it worked. I assume it's a problem with my account, but it doesn't make much sense to me.

cyfung1031 commented 4 months ago

This is A/B testing I believe. Some accounts will experience the new changes (which is unstable and subject to further changes) and some accounts would not.

I have not yet experienced this so I cannot fix this issue at this moment. Please wait.

cyfung1031 commented 4 months ago

Updated. Please check whether it is solved or not.

Katzenwerfer commented 4 months ago

Seems to be working now, with a small caveat with abbreviated counts where it only displays the first digit.

image

image

cyfung1031 commented 4 months ago

I think I need your help to debug this issue.

  1. Please open the Console in Developer Tool ( on the page that the "comments 2.5K" shown ) ( shortcut keys: "Cmd + Option + J" (on a Mac) or "Ctrl +Shift +J" (on Windows) )

  2. Paste this to the typing and press enter

    (()=>{const {commentsCount, countText} =document.querySelector('#tab-comments ytd-comments-header-renderer').polymerController.data; return JSON.stringify({commentsCount, countText})})()
  3. Copy the result and post it for my reference.

Screen Shot 2024-06-17 at 23 04 51
Katzenwerfer commented 4 months ago

Here it is

16:51:48.520 >> (()=>{const {commentsCount, countText} =document.querySelector('#tab-comments ytd-comments-header-renderer').polymerController.data; return JSON.stringify({commentsCount, countText})})()
16:51:48.562 <- '{"commentsCount":{"runs":[{"text":"2.5K"}]},"countText":{"runs":[{"text":"Comments"},{"text":" 2.5K"}]}}'

Also tried it in safe mode (no extensions and custom settings) and the output seems the same


16:56:39.255 >> (()=>{const {commentsCount, countText} =document.querySelector('ytd-comments-header-renderer').polymerController.data; return JSON.stringify({commentsCount, countText})})()
16:56:39.291 <- '{"commentsCount":{"runs":[{"text":"2.5K"}]},"countText":{"runs":[{"text":"Comments"},{"text":" 2.5K"}]}}'
cyfung1031 commented 4 months ago

Updated. Please check whether it works for you or not.

Katzenwerfer commented 4 months ago

Working fine 👍 image