DuckPlayer
DuckPlayer interface provides a set of methods for interacting with the DuckPlayer.
Types
Data class representing user preferences for Duck Player.
Functions
Creates a DuckPlayer URI from a YouTube no-cookie URI.
Creates a YouTube URI from a DuckPlayer URI.
Notifies the DuckPlayer that the user navigated to YouTube successfully, so subsequent requests would redirect to Duck Player
Notifies the DuckPlayer that the overlay was hidden after navigating back from Duck Player
Retrieves the current state of the DuckPlayer.
Retrieves the user preferences.
Notify Duck Player of a resource request and allow Duck Player to return the data.
Checks if a string is a DuckPlayer URI.
Checks if a URI is a simulated YouTube no-cookie URI.
Checks if a URI is a YouTube URL.
Checks if a URI is a YouTube watch URL.
Observes whether a duck Player will be opened in a new tab based on RC flag and user settings
Retrieves a flow of user preferences.
Sends a pixel with the given name and data.
Sets the DuckPlayer origin.
Sets the user preferences.
Checks if the DuckPlayer overlay should be hidden after navigating back from Duck Player
Checks whether a duck Player will be opened in a new tab based on RC flag and user settings
Shows the Duck Player Prime modal.
Returns true
if Duck Player was ever used before.
Checks whether a URL will trigger Duck Player loading based on URL and user settings