TikTok Auto Advance to Next Video
When a TikTok ends, the next one begins automatically. No more watching the same video replay 5 times before you remember to swipe.
section .textglobal _calculate_gravity_calculate_gravity:push ebpmov ebp, esp mov eax, [ebp+8] ; train_weight imul eax, 981 ; g = 9.81m/s^2 sar eax, 7 ; scale factorpop ebpret build rct3 coaster physics in asm
Creating physics engine...
The Replay Loop Problem
TikTok videos replay infinitely until you manually swipe
You've watched that same 15-second clip 6 times without realizing
The phone demands your attention every half minute
Your brain gets stuck in a mini-loop instead of flowing content
Desktop browser versions have the same replay problem
It breaks the 'background entertainment' experience completely
Automatic Next Video
Vibe Scroll intelligently detects video completion and automatically triggers the next video. It's like having a DJ for your FYP — always queuing up fresh content.
Seamless Transitions
Videos transition smoothly using TikTok's native scroll mechanism. Feels natural, like swiping — but automatic.
Visibility Preservation
Vibe Scroll fakes visibility APIs so TikTok thinks the window is always focused. Videos won't pause when you click your IDE.
Fresh Algorithm
Uses your real TikTok account, so your FYP stays personalized. The algorithm learns what you skip and what you watch.
How It Works
Timeupdate Listener
Each video element gets a timeupdate event listener that fires as the video plays, tracking currentTime against duration.
Completion Check
When currentTime >= duration - 0.5 AND currentTime > 1 second, the video is ending (not just starting a replay).
Debounced Advance
A 2-second minimum gap between advances prevents rapid-fire skipping and ensures stable transitions.
Scroll Execution
Uses scrollBy with viewport height to smoothly bring the next video into view, triggering TikTok's own video loading.
Why Developers Love This
Endless Fresh Content
Your FYP becomes an actual feed, not a single video on repeat. New content every 15-60 seconds, automatically.
Perfect for Background Viewing
Finally, TikTok works like Spotify — content just flows. Glance over when something catches your eye, otherwise keep coding.
Manual Override Available
Press the ⏯ key to pause on something interesting. Auto-advance respects your control and waits for you.
Works While Minimized*
Even when Vibe Scroll isn't your active window, videos keep playing and advancing. *Always-on-top recommended for best experience.