YouTube Auto-Resume

This script automatically tracks and restores your YouTube playback position. This user script remembers where you left off in any video—allowing you to seamlessly continue watching even after navigating away or reloading the page. It saves your progress for each video for up to 30 days (configurable) and automatically cleans up outdated entries, ensuring a smooth and uninterrupted viewing experience every time.

Αυτές είναι εκδόσεις αυτού του κώδικα όπου ο κώδικας έχει ενημερωθεί. Προβολή όλων των εκδόσεων.

  • v1.5.2 15/06/2025

    minor code clean up

  • v1.5.1 14/06/2025

    Mini Rewrite.

    • Fixed a few race conditions that caused resumption to appear ineffective under certain conditions.
    • Sped up the initial script loading.
    • Updated memory duration. It's not 30 days by default, but shorts and previews being shorter.
    • Added a cleanup interval that would clean up storage every 5 minutes. (experimental)
  • v1.4.1 05/05/2025

    Oops

  • v1.4 05/05/2025

    Added early loading for first load.
    Added better iframe handling.

  • v1.3.4 03/05/2025

    Tracking videos with specified times are causing more issues than it solves. Removing this feature.

  • v1.3.3 30/04/2025

    Added a small amount of extra handling logic for homepage and previews.

  • v1.3.2 27/04/2025

    Excluded script from being run in youtube chat.

  • v1.3.1 10/04/2025

    Restored resumption behaviour for "Watch Later" playlists.

  • v1.3 09/04/2025

    Updated script to no longer trigger resumption if the video is being viewed as part of a playlist. Playback progress is still tracked. It makes more sense if the playlist plays with every video playing completely through instead of starting at varying time for each video.

  • v1.2.12 27/03/2025

    Skips buffer check during seek. Increases perceived and actual performance slightly.

  • v1.2.11 28/02/2025

    oops

  • v1.2.10 28/02/2025

    Fixed an issue that caused videoIds to be tracked incorrectly when loading a video with a timed link.

  • v1.2.9 27/02/2025

    Skip videos that already have the t parameter to avoid overwriting the time specified by timed links.

  • v1.2.8 24/02/2025

    Refactor and minor bug fixes.

  • v1.2.7 21/02/2025

    slightly modified how new video loads are handled

  • v1.2.6 20/02/2025

    Update to match YouTube api event changes.

  • v1.2.5 19/02/2025

    Made videos not resume if the playback time is already within 1 second of the value stored.

  • v1.2.4 16/02/2025

    YouTube sometimes incorrectly sets playback status to isCued even if the video is already playing. Fixed code that relied on that playback status.
    Fixed an issue that incorrectly attaches multiple event listeners to the same video element under certain conditions.

  • v1.2.3 16/02/2025

    Make the script resume playback position without waiting for playback if the video is not in a cued state.

  • v1.2.2 15/02/2025

    Removed debug logging to stop console spam.

  • v1.2.1 15/02/2025

    Fixed an issue where the script would incorrectly start playback if the video player puts itself into the 'isCued' playback state.

  • v1.2.0 15/02/2025

    Seperated storage for each video ID so they no longer keep overwriting each other when multiple videos are playing at the same time.
    Disabled auto-resume for live content.

  • v1.1.0 13/02/2025

    The script now removes the entry of the video that has fully finished playing.

  • v1.0.0 13/02/2025