Skip to content

YouTube event hooks #1278

Closed
Closed
@mchangrh

Description

@mchangrh

YouTube still fires some events globally and we can use those events in order to better prepare/setup asyncronously

yt-navigate-finish

  • videoID change notifier, can also see what pageType is targeted and if SponsorBlock should be active and if so, in what capacity (document vs url lookup)

yt-navigate-start

  • videoID change queued, indication to flush videoID for waiting navigate-finish

yt-navigate

  • reveals videoID target, which allow use the document or URL has changed

yt-player-updated

  • listen for player state updates to reliably change over after advertisements
  • reliable videoID lookup

events

  • yt-navigate-finish
  • yt-navigate-start
  • yt-nagivate
  • yt-player-updated

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions