Auto-Next Chapter

Automatically clicks the next chapter button after customizable time, continues timer after audio ends, auto-minimizes on inactivity

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

  • v1.5 2025-04-19

    Key Changes Made to Auto-Next Chapter (v1.4 → v1.5)
    1. Timer Continues Running After Audio Ends

    Added a new audioHasEnded flag to track when audio has ended naturally
    Modified the audio event listeners to distinguish between manual pause and natural end
    Added specific event listener for the 'ended' event that sets the flag but doesn't pause the timer
    Updated pause behavior to only pause the timer on manual pauses, not when audio ends naturally

    2. Auto-Minimize Functionality

    Added inactivity timer with 4-second timeout (matching the Audio Controls script)
    Implemented resetInactivityTimer() function to manage auto-minimize behavior
    Added document-level click detection to minimize when clicking outside the panel
    Added event listeners to reset timer on user interaction with the panel
    Modified all UI interaction points to reset the inactivity timer

    3. Additional Improvements

    Added version display in the control panel (showing v1.5)
    Added reset calls for the inactivity timer to all interactive elements
    Improved code organization with better comments
    Added event propagation handling to prevent minimizing when clicking inside the panel

    4. Functionality Testing

    The script should:

    Continue running the timer after audio ends
    Auto-minimize after 4 seconds of inactivity
    Minimize when clicking outside the panel
    Reset the inactivity timer whenever the user interacts with the panel

  • v1.4 2025-04-19

    Main Changes:

    Updated the version number to 1.2 in the UserScript header
    Modified the setTimerFromAudioDuration() function to:

    Get the current playback rate from localStorage (where the Audio Controls script stores it)
    Calculate timer as audio duration ÷ playback speed + 10 seconds buffer
    Display the playback speed in the UI


    Added a new playback rate display element to show the current speed
    Added a setupPlaybackRateMonitor() function that:

    Checks for playback rate changes every 2 seconds
    Adjusts the remaining time proportionally when speed changes
    Updates the playback rate display

  • v1.3 2025-04-18
  • v1.1 2025-04-16

    New Features Added:

    Auto-Play Audio After Chapter Navigation

    After changing to a new chapter (either automatically or manually), the audio will automatically start playing after a 3-second delay
    A notification will appear: "Auto-playing audio in 3 seconds..." followed by "Audio playing automatically"
    Works with both the auto-next timer and manual "Next" button clicks


    Default Playback Speed Set to 0.7x

    Changed the default audio playback rate from 1.0x to 0.7x
    This setting applies to new users and when the script is first installed
    Existing users who have already set a custom speed will keep their preference

  • v1.0 2025-04-16
  • v0.8 2025-04-16