你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/549881-youtube-helper-api/versions,源站連結 點此以跳轉

YouTube Helper API

YouTube Helper API.

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

  • v0.9.7.2 2026-01-10

    Fixed a bug the GM shim and the API proxy logic that could crash the script in very rare cases. Minor fix, should be identical in behaviour in most cases.

  • v0.9.7.1 2026-01-05

    Fixed an issue that caused publicApi to not be returned by custom events. (Scoping issue)
    Make debug.log to default to calling debug.log[1].

  • v0.9.7 2026-01-04
  • v0.9.7 2026-01-04
  • v0.9.7 2026-01-04

    Made API instanced with UUIDs that are registered in a global registry.
    Allowed debug to be controlled from the global context space. This allowed debug to be toggled from the dev console in real-time.

  • v0.9.6 2026-01-02

    Atomic Debug System: Replaced the logging engine with direct function bindings for zero-overhead performance.
    Numeric Logging: Added support for accessing log levels via array indices (e.g., debug.log[0]) alongside named methods.
    Polite Read-Only Protection: Updated state proxies to silently block write attempts with a warning instead of crashing calling scripts.
    Switched back to the function form of 'use strict'.

  • v0.9.5 2025-12-19

    Fixed the check order inside the trackPlaybackProgress to reflect the correct logical availability.

  • v0.9.4 2025-12-05

    Added a 5th logging level.

  • v0.9.3.3 2025-12-05

    Tweaked logging level for a few messages.

  • v0.9.3.2 2025-12-05

    fix typo

  • v0.9.3.1 2025-12-05

    fix typo

  • v0.9.3 2025-12-05

    New Debug System: Added api.debug with 4 logging levels (minimal, typical, detailed, all). Logs point to the caller's line number.
    New Helpers: Added reloadToCurrentProgress() and exposed gmCapabilities.
    Internal Improvements: Library now uses the new debug system for cleaner console output and better error handling.

  • v0.9.2 2025-12-01

    Moved 'use strict' to global scope.
    Added added a shim for Greasemonkey API functions. This should catch missing GM or permission not granted errors without crashing.

  • v0.9.1 2025-11-27
  • v0.9.1 2025-11-25
  • v0.9.1 2025-11-25
  • v0.9.1 2025-11-25
  • v0.9.1 2025-11-25
  • v0.9.1 2025-11-25
  • v0.9.1 2025-11-23
  • v0.9.1 2025-11-23
  • v0.9.1 2025-11-20

    Fixed video playback language updates not being detected correctly.

  • v0.9.1 2025-11-20

    Update comments and logging.

  • v0.9.0 2025-11-20

    Switched to an isolated library pattern.

  • v0.8.0 2025-11-19

    Updated to be a global singleton. (again)
    Updated to inject into the newer/broader globalThis instead of window.

  • v0.7.6 2025-11-18

    Made language track detection more robust.
    Added logic to determine if the video is auto dubbed with its own appState value.

  • v0.7.5 2025-11-14

    Updated API logic to match YouTube's new audio track format.

  • v0.7.4 2025-11-14

    Fixed an issue that caused the script to notify itself being ready before the data has finished populating.

  • v0.7.3 2025-11-14

    Fixed a bug that caused the script process videos before all video data has loaded into the video player.

  • v0.7.2 2025-11-09

    Fixed a bug that caused the video html element to become stale after reloading throw YouTube's API. This seems to be new YouTube behavior introduced by the New Delhi (2025) UI update.

  • v0.7.1 2025-11-08

    Fixed a race condition where ad states and video states can update in random order depending on loading conditions.

  • v0.7.0 2025-11-04

    Fixed a bug that caused player updates to be handled event when video data does not exist.
    Fixed a race condition bug that caused the API to return incorrect data.

  • v0.6.2.1 2025-11-04

    fix type

  • v0.6.2 2025-11-04

    Excluded certain urls from being early processed.

  • v0.6.1 2025-10-26

    Updated to track if the current video has been streamed or premiered. (basically any format that could have a chat log would return true)

  • v0.6.0 2025-10-25

    Updated the API to directly reference read-only proxy objects for better performance.
    Updated page type to use the current page URL as fallback when YouTube's native API fails to return a proper response.

  • v0.5.8 2025-10-17

    Updated how the player api fallback working when running in iframes.
    Updated the listener player update event.

  • v0.5.7 2025-10-01
    New
    • Refactored storageApi to use a declarative lookup table, making it more readable and easier to extend.
    • Converted dynamic DOM element properties on the page object to use getters, ensuring references are always current on a Single Page Application.
    • Consolidated reloadVideo functions to remove duplicated code and follow the DRY principle.
    • Adopted underscore (_) prefix as a naming convention for internal functions to clearly separate them from the public API.
    • Added a console warning if a non-existent YouTube function was called through the API proxy instead of failing silently.
    Fixes
    • Fixed a bug that caused duplicate timeupdate event listeners to be added repeatedly by tracking listener attachment in a WeakMap.
    • Corrected storage functions to consistently use the storageApi abstraction instead of calling GM functions directly.
  • v0.5.6 2025-10-01

    Added a fuction to reload the current video.

  • v0.5.5 2025-10-01

    Added distinction between content that is live or was live (VOD), and content that is currently live exclusively.

  • v0.5.4 2025-09-30
  • v0.5.4 2025-09-29

    Added a private event target so we don't fire event into the document directly. Global event handshake may eventually be added.

  • v0.5.3 2025-09-29

    Use a singleton pattern for initiation to avoid duplicate events firing.

  • v0.5.2 2025-09-29

    Fixed tracked playback progress not updating when loading a new video.

  • v0.5.1 2025-09-29

    Updated all public storage functions to eager sync between script storage and local storage.
    Updated page type updating to listen for different events. Should now update earlier and more consistently.
    Fix time specified video detection. YouTube player response object turns out to be unreliable for this.

  • v0.5.0 2025-09-29

    No longer exposing storageApi.
    Added public delete and list functions for synced storage.

  • v0.4.8 2025-09-29

    Added support for time specified video detection.
    Added support for playlist id detection.
    Exposed storagedApi to publicApi.

  • v0.4.7 2025-09-29

    Fixed ad detection and tracking.

  • v0.4.6 2025-09-29

    Updated player selector for mobile.

  • v0.4.5 2025-09-28

    Updated how premium bitrate options are determined.

显示所有脚本版本