@duckduckgo/content-scope-scripts
    Preparing search index...

    Handle the switch between small & large overlays

    • conduct any communications
    Index
    appendedMobileVariant: "classic" | "drawer" | null = null
    didAllowFirstVideo: boolean = false
    environment: Environment
    lastVideoId: string | null = null
    sideEffects: SideEffects = ...
    userValues: UserValues
    • A scroll gesture can fullscreen YouTube's player container. Our overlays sit inside #movie_player and stretch to the screen, but #player-control-container is outside that stacking context and hit-tests above them, so every tap lands on YouTube with no chrome left to escape to. Call this after appending, so the first check sees the overlay.

      Returns void

    • After opt-out the

      Returns void