Greasy Fork is available in English.

YTBetter - Enable Rewind/DVR

Unlocks rewind for YouTube live streams with disabled DVR

< Feedback on YTBetter - Enable Rewind/DVR

Review: Good - script works

§
Posted: 17. 01. 2024

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.

copyMisterAuthor
§
Posted: 17. 01. 2024

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.

§
Posted: 18. 01. 2024

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.

Post reply

Sign in to post a reply.