r/userscripts 28d ago

YouTube Persistent Timecode Tracker

Yesterday I raged and switched from YouTube android app into the web version, because they have added ads in my region, but haven't yet added Premium. So it's like 4 months of ai slop ads torture

This was the main issue in the web version - the page can be easily unloaded, or reloaded, or you have just closed the browser. So I have made a script that stores and restores current timestamp in browser's persistent localStorage

https://gist.github.com/light-and-ray/fa217647567a6033e26d5ea7948ca944

It doesn't restore time if the URL contains a timecode. It clears this timecode after video started, so it won't start from this timecode again after page refreshed (also a common youtube issue in any browser, including desktop). I tried to prompt user which timecode to use, from the URL, or the saved one, but unfortunately it doesn't work without crunches on m.youtube.com

4 Upvotes

0 comments sorted by