Greasy Fork

Greasy Fork is available in English.

YouTube 自动续播

无缝接续播放任何 YouTube 视频,从您上次离开的地方继续观看。此脚本会自动保存您的播放进度,并拥有智能播放列表处理功能:您在播放列表中的进度会被独立保存,不会影响您在其他地方观看同一视频的记录。此外,它还能以独特规则处理 Shorts 和视频预览,并会自动清理过期数据。

这些是此脚本变更过代码的版本。 显示所有版本。

  • v2.3.5.1 2025-10-25

    Removed console spam.

  • v2.3.5 2025-10-25

    Fixed a bug that caused the script to occasionally update the stored playback progress value before resuming, causing the resumption to appear to fail.

  • v2.3.4 2025-10-23

    Fixed an issue that caused timestamped comments to fail at modifying video playback time.

  • v2.3.3 2025-10-22

    Fixed an issue that caused video preview containers to be incorrectly processed.
    Fixed an issue that caused preview progress bars that load in late to not be processed correctly. Fixed an issue that caused search result page previews to be processed incorrectly. (Only checked on desktop version.)

  • v2.3.2 2025-10-22

    Fixed a potential memory leak. Event listeners were being problematically defined inside a loop and would prevent removed elements from being garbage-collected and likely causes a detached DOM tree leak.

  • v2.3.1 2025-10-21

    Fixed an issue that caused navigation to not be intercepted if the href of the element has already been processd and the t parameter already removed.

  • v2.3.0 2025-10-21

    Updated to Youtube Helper API v0.5.8. This should help with certain iframe and mobile situations.
    Added playback progress preview bar with syncing. Tries to use the native playback progress preview bar to indicate if and where a video would be resumed to. Overrides existing preview bars if necessary. The current implementation seems fragile so this may be removed if maintenance proves too difficult. If this ends up staying then this will be documented in the script description.

  • v2.2.8 2025-10-01

    Update to YouTube Helper API 0.5.7.*

  • v2.2.7 2025-10-01

    Updated to YouTube Helper API 0.5.6. This fixes a bug that caused live content to be detected incorrectly and VODs being incorrectly excluded from progress restoration.

  • v2.2.6 2025-09-30

    Adjusted min save threshold to 1.5s. 3s was a bit too large.

  • v2.2.5 2025-09-30

    Added a 3 second minimum threshold for playback durations to be saved. Help avoid saving accidentally triggered playbacks. This is a simple patch only.

  • v2.2.4 2025-09-29

    Updated to YouTube Helper API 0.5.4.

  • v2.2.3 2025-09-29

    Updated to YouTube Helper API 0.5.2. This should fix the bug that causes playback progress to track incorrectly between videos.
    Fixed a bug that caused playback progress to persist when manually seeked to the end of the video progress bar.

  • v2.2.2 2025-09-29

    Updated YouTube Helper API to v0.5.1.
    Fixed storage interactions.
    Other minor bug fixes.

  • v2.2.1 2025-09-29

    Oops. Forgot to @require YouTube Helper API in v2.2.1.

  • v2.2.0 2025-09-29

    Updated script to use YouTube Helper API 0.4.8 for maximum function and compatibility. This should now use script storage whenever possible to avoid saved progress being cookie dependent.

  • v2.1.1 2025-09-28

    Reintroduced the feature that treats the watch later as regular videos. Watch later now syncs progress with regular videos instead of having its own playlist tracker.

  • v2.1.0 2025-09-18

    Added mobile YouTube support.

  • v2.0.0 2025-09-06

    Replace Greasmonkey API depencies with standard JS alternative. Should provide better script manager compatibility.
    Added a per-video write lock feature to handle multiple tabs playing the same video.

  • v1.7.6 2025-08-06

    Removed the experiement patch that tried to fix youtube miniplay toggle when over shorts. Was causing too many issues in regular non-edge cases.

  • v1.7.5 2025-07-29

    Minor bug fixes.

  • v1.7.4 2025-07-06

    Fixed a bug that caused the script to incorrect reinitiate when toggling miniplayer mode.
    Added a debounce to cleanup that waits until the video actually stops playing.
    Implemented a fix that temporary patches YouTube's buggy miniplayer implementation. Video data would previouly, by YouTube's default, incorretly unload when toggling miniplayer mode while playing a video over a shorts video.

  • v1.7.3 2025-06-27

    Sync storage cleanup between multiple tabs.

  • v1.7.2 2025-06-26

    fix script incorrectly being loaded inside youtube live chat iframes.

  • v1.7.1 2025-06-21

    fixed a bug where invisible preloaded video players are detected by the script and forced to "resume" playback in the foreground.

  • v1.7 2025-06-20

    Removed the automatic navigation between videos within the same playlist. (I'm too lazy to fix related bugs, but also having that feature required the entire youtube playlist to fully finish loading, which takes way too long for even only slightly larger playlists, and is terrible for UX.)
    Playlist resumption updated to store all video within a playlist instead of only the last played one.
    Added a thing that automatically migrations data from v1.6 and before.

  • v1.6 2025-06-16
    • Added Full Playlist Support: The script now properly tracks and resumes progress within all YouTube playlists.
    • Separate Playlist Progress: A video's progress within a playlist is now saved independently to the playlist's context. Thiswill not interfere with the progress of the same video when watched outside of a playlist.

    • [m] Various code refactoring and robustness improvements.

  • v1.5.2 2025-06-15

    minor code clean up

  • v1.5.1 2025-06-14

    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 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.

显示所有脚本版本