Greasy Fork

Greasy Fork is available in English.

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 3 days (configurable) and automatically cleans up outdated entries, ensuring a smooth and uninterrupted viewing experience every time.

这些是代码更新过的版本。 显示所有版本

  • v1.4.1 2025-05-05

    Oops

  • v1.4 2025-05-05

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

  • v1.3.4 2025-05-03

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

  • v1.3.3 2025-04-30

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

  • v1.3.2 2025-04-27

    Excluded script from being run in youtube chat.

  • v1.3.1 2025-04-10

    Restored resumption behaviour for "Watch Later" playlists.

  • v1.3 2025-04-09

    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 2025-03-27

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

  • v1.2.11 2025-02-28

    oops

  • v1.2.10 2025-02-28

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

  • v1.2.9 2025-02-27

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

  • v1.2.8 2025-02-24

    Refactor and minor bug fixes.

  • v1.2.7 2025-02-21

    slightly modified how new video loads are handled

  • v1.2.6 2025-02-20

    Update to match YouTube api event changes.

  • v1.2.5 2025-02-19

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

  • v1.2.4 2025-02-16

    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 2025-02-16

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

  • v1.2.2 2025-02-15

    Removed debug logging to stop console spam.

  • v1.2.1 2025-02-15

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

  • v1.2.0 2025-02-15

    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 2025-02-13

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

  • v1.0.0 2025-02-13