Closed R3G3N3R4T0R closed 1 year ago
Am I correct that ytd-comment-renderer
is null when I am logged into my Google account?🤨
It is working fine in my Firefox, so I would like to know the detailed procedure to reproduce it.
No, ytd-comment-renderer
is not null when logged in if the tag is what you are referring to. it is just that the commentElem.querySelector("ytd-comment-renderer")
method returned null when logged in. The only difference between logged in and logged out is the HTML for the like/dislike buttons, reply box, and the more/less reply buttons.
It appears that both my main and alt are affected so if anything differs between our systems it could be a regional issue. YouTube did not use handles when logged in, only when logged out until a few days ago for me.
Step to reproduce it is as such:
We have identified the cause and have released a fixed version v0.3.5. Please update it.
Can confirm it is fixed. Thanks for the quick response
The script does not work when logged in and using Firefox. It works fine in Chromium-based browsers. The culprit is querySelector from the function rewriteCommentNameFromContinuationItems
Debugger Logged Out
Debugger Logged In
HTML Logged In
![image](https://github.com/yakisova41/return-youtube-comment-username/assets/54089608/9c3053cd-372e-4950-8440-2ae8451d2309)
These are from the same link, one successfully selected
ytd-comment-renderer
fromytd-comment-thread-renderer
and another failed to do so. Andytd-comment-renderer
does exist in the logged in version.CY Fung's alternative implementation also has the same issue. I haven't debugged his but also no request for username when logged in so likely the same problem.
Versions Tested