YouTube Replay Counter
in Projects on Computer science
YouTube Replay Counter is a simple Tampermonkey injection script which adds a “plays” counter to the native YouTube player. In short, it tracks the total amount of times a video has been replayed.
YouTube Replay Counter script injecting a “plays” count to the native YouTube player.
The script uses browser cookies to track the total amount of plays each video has. During each watch session, it tracks a “watch delta” by periodically monitoring the video progress. Once the watch delta exceeds a threshold (by default 75%), it will add one play to the counter stored in cookies. The next time it updates, it parses this cookie variable and displays the replay count neatly below the video player.