diff options
| author | Ewy~ <ewy0@protonmail.com> | 2025-12-23 15:38:50 +0100 |
|---|---|---|
| committer | Ewy~ <ewy0@protonmail.com> | 2025-12-23 15:38:50 +0100 |
| commit | 8175ef1cd145d68b987efece442ae244bef892e4 (patch) | |
| tree | 56d97cf1eee9d6feb1f9dfe7fe27196ad9212b49 /youtube-auto-timestamper.user.js | |
| parent | 4ab68441b22e71420a1db48e107fe145ca004046 (diff) | |
add documentatioon about time delay
Diffstat (limited to 'youtube-auto-timestamper.user.js')
| -rw-r--r-- | youtube-auto-timestamper.user.js | 7 |
1 files changed, 5 insertions, 2 deletions
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) { |
