From 8175ef1cd145d68b987efece442ae244bef892e4 Mon Sep 17 00:00:00 2001 From: Ewy~ Date: Tue, 23 Dec 2025 15:38:50 +0100 Subject: add documentatioon about time delay --- youtube-auto-timestamper.user.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'youtube-auto-timestamper.user.js') diff --git a/youtube-auto-timestamper.user.js b/youtube-auto-timestamper.user.js index 105cb08..ec384cb 100644 --- a/youtube-auto-timestamper.user.js +++ b/youtube-auto-timestamper.user.js @@ -8,12 +8,15 @@ // @description 12/17/2025, 5:12:31 PM // ==/UserScript== -// interval in seconds +// interval in ms const interval = 1000; +// start delay in ms const startDelay = 10000; -const timeRegex = /(([&?])t=[0-9]+)/ +// substracted time in seconds const timeDelay = 0; +const timeRegex = /(([&?])t=[0-9]+)/ + const tick = () => { const ytplayer = document.getElementById("movie_player"); if (!ytplayer) { -- cgit v1.3