Poster candidates for the buffering hold, cheapest source first.
Remove elements, event listeners etc
Special handling of a first-page, an attempt to load our overlay as quickly as possible
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.
After opt-out the
Just brute-force calling video.pause() for as long as the user is seeing the overlay.
If the checkbox was checked, this action means that we want to 'always' use the private player
But, if the checkbox was not checked, then we want to keep the state as 'alwaysAsk'
Optionalopts: { ignoreCache?: boolean; via?: string } = {}
Handle the switch between small & large overlays