yakisova41 / return-youtube-comment-username

This is to change the handle in the YouTube comments section to a username
https://rycu.yakisova.com/
MIT License
59 stars 2 forks source link

[Bug]: Name element is null #81

Closed jan-ale closed 10 months ago

jan-ale commented 10 months ago

Browser

Chrome 118.0.5993.124

Version

0.3.15

YouTube Client Version

youtube.player.web_20231112_00_RC00

Release Type

Chrome Extension

Userscript manager

No response

The URL where the problem occurred

https://www.youtube.com/watch

What scripts or extensions do you use with it?

Disabled everything

What is the problem?

In the console, it says [rycu] Name element is null The extension doesn't work at all.

Darlat commented 10 months ago

It can be fixed by going into the script, searching for "span" and replacing it with "yt-formatted-string".

I have no idea if editing the script yourself breaks auto-update though.

Also note that you might need to refresh the page when first entering a video page sometimes, since it seems the site thinks the names are empty and thus hiding them when first entering the page.