YTBetter - Enable Rewind/DVR

Unlocks rewind for YouTube live streams with disabled DVR

< YTBetter - Enable Rewind/DVR 피드백

리뷰: 좋음 - 잘 동작함

§
작성: 2024-01-17

Hello,

It's possible to have a more detailed description, because it looks really useful but I'm wondering how more precisely please ?

Thank you in advance.

copyMister개발자
§
작성: 2024-01-17

Hello! Sure, I added one more sentence to the description and attached an image. Here it is.

If you're wondering how the code works, I also had to spend some time reading MDN documentation to understand it, lol. I don't have much ES6 experience.
Basically it looks for the property "playerResponse" in every Object on the YouTube page and then forces DVR to be enabled when the property is found. This technique is used quite often for userscripts, as it turns out. I thought that maybe it can affect browser performance (since it searches in every object), but didn't notice any difference myself on my semi-old PC.
The "Symbol.for" part is needed to prevent compatibility issues with other scripts that also modify playerResponse. It was smart for the original author to put it there.

§
작성: 2024-01-18

Thank you very much for all explanations, it's very interesting ;-)

Effectively, it's a very great script :-)

And then to finish, it works very well.

댓글 남기기

댓글을 남기려면 로그인하세요.