Greasy Fork is available in English.

YouTube: disable rolling numbers count up animation

Remove the annoying count up animation for likes and video views on YouTube

< Commentaires sur YouTube: disable rolling numbers count up animation

Avis: Bon - le script fonctionne correctement

§
Posté le: 10/03/2024

It is kind of flaky for me, works only sometimes. There seems to be a race condition because it works much better if I delay wrap the function evaluation, with e.g.

(function() {
  'use strict';
  setTimeout(() => {  // Added this line

  // ....

  }, 4000);           // Added this line
})();
KonfAuteur
§
Posté le: 10/03/2024
Édité le: 10/03/2024

I barely use YouTube nowadays so I have no idea how this script performs. You're right about the race condition. I've made an update with your solution and I've also changed the directive which tells the browser after what event the script should be launched. This should be more stable than relying only on a random 4 seconds delay

§
Posté le: 13/03/2024

Thanks, it works great now!

Poster une réponse

Connectez-vous pour poster une réponse.