sniklaus / youtube-watchmarker

a browser extension that keeps track of your YouTube watch history and marks videos that you have already watched

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Site not loading properly, only video player

RealAnthony0001 opened this issue · comments

When I click on a video, only the video player is loaded. Not the comments, description, reccommended etc. I'm using Brave. I created a new profile a tried it without the extension and it was okay. Installed it and it didnt load. But when I refreshed the page it loaded just fine.
No extension:
Screenshot 2024-03-13 at 9 31 59 PM
With extension:
Screenshot 2024-03-13 at 9 31 26 PM
With extension on reload:
Screenshot 2024-03-13 at 9 31 38 PM

Maybe it's because of the new YouTube UI?
OS: macOS 14.4
Brave: Version 1.65.77 Chromium: 123.0.6312.29
Extension: 4.6.1

I didn't even know the extension worked in Brave. 😅

Have you tried disabling all your other extensions to make sure this isn't due to some conflicts with those? What about using a different browser, is this specific to Brave?

I created a new, empty profile with no extensions, except this one. I also tried it in firefox and the same issue 😅
No extensions:
Screenshot 2024-03-13 at 9 43 09 PM
With extension:
Screenshot 2024-03-13 at 9 43 35 PM
With extension, after reload:
Screenshot 2024-03-13 at 9 43 39 PM

Firefox: 123.0.1
Extension: 4.6.1

Thanks for trying to debug this! I am afraid that I have no clue why this would be happening, so the only thing I can do right now is wait for me to get the updated Youtube theme so I can debug this hands on. 🤔

I guess so 😅 I hate the new UI. Tried it with a different account that still has the old one and it works just fine! Wish there was a way to switch back to it. 😖

I'll just add it happens in chrome as well. F5 the video page and it's fixed until you watch the next video.

I guess so 😅 I hate the new UI. Tried it with a different account that still has the old one and it works just fine! Wish there was a way to switch back to it. 😖

Add this filter in uBlock and you have the old UI back.
youtube.com##+js(set, yt.config_.EXPERIMENT_FLAGS.kevlar_watch_grid, false)

commented

I've also been experiencing this on Chrome whenever Youtube attempts to force the new UI, the issue results in a similar half-rendered UI.

The following error is thrown:

Uncaught TypeError: Cannot read properties of undefined (reading '0')
    at <anonymous>:46:98

This only affects when you navigate to watch pages through Youtube UI links, browser level hard refreshing the page resolve the issue.

From devtools sources, it appears that this error is being caused by background.js:1707.

Digging a little into what is being used there, it looks like for the new UI on the ytInitialData check, the title that is being looked for at $.videoRenderer.title.runs[n].text has been removed, instead the value can be located by:

let strTitle = objVideo['videoRenderer']['title']['simpleText']

Example of current behavior with Chrome v127 and extension version 4.6.1

image