raingart / Nova-YouTube-extension

Apache License 2.0
218 stars 11 forks source link

[Bug] #180

Closed muescha closed 4 months ago

muescha commented 4 months ago

Describe what exactly the error is. So that I don't interrogate you make sure the error is not related to others extensions/script related to YT

Error on: https://www.youtube.com/watch?v=y2uLvfdjFCc

4userscript.html?name=Nova-YouTube.user.js&id=987b6713-0441-4680-96ce-3f93a5a3c8cb:3009 Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
    at HTMLVideoElement.setRemaining (userscript.html?name=Nova-YouTube.user.js&id=987b6713-0441-4680-96ce-3f93a5a3c8cb:3009:2)
setRemaining @ userscript.html?name=Nova-YouTube.user.js&id=987b6713-0441-4680-96ce-3f93a5a3c8cb:3009
/* 3008 */ const text = user_settings.time_remaining_format
/* 3009 */ .replace(/duration(\*speed)|left(\*speed|%)?|done(%)?|'([^']|'')*'/g, partPattern => {

when I add:

console.log(user_settings.time_remaining_format);

then it prints an undefined

it seem it is not setup? I tried to change it with the settings:

Bildschirmfoto 2024-07-27 um 18 43 43

muescha commented 4 months ago

changing the value and reloading the youtube page fixed it