Youtube - No scroll to top on timestamps

Prevent Youtube scrolling to top when clicking timestamps in description or comments

< Commentaires sur Youtube - No scroll to top on timestamps

Avis: Bon - le script fonctionne correctement

§
Posté le: 05/04/2023

Your timestampToSeconds will always return true. This will disable the next button.

You need to return false if parts.length < 2.

§
Posté le: 05/04/2023

It's true if there's no text, like when you click the next button. This script will prevent YouTube from skipping to the next video.

q1kAuteur
§
Posté le: 05/04/2023

Thanks, I haven't noticed this edge case as I have those buttons removed.
I've added this check. There shouldn't be any issues now.

Poster une réponse

Connectez-vous pour poster une réponse.