YouTube - Picture-in-Picture
By gfxpronet · 3 months ago · 10+ installs
Adds a Picture-in-Picture button to the YouTube player controls and lets you toggle it with the P key on YouTube watch pages.
Key Highlights
- Adds a Picture-in-Picture button to YouTube video controls
- Supports toggling Picture-in-Picture with the P key
- Updates the button state when entering or exiting Picture-in-Picture
- Hides or disables the control when Picture-in-Picture is not available
Details
This tweek adds a dedicated Picture-in-Picture control to YouTube watch pages, placing it with the player’s right-side controls near the Theater mode button. When supported by the browser and video, the button opens the current YouTube video in a floating Picture-in-Picture window.
It also adds a P keyboard shortcut for toggling Picture-in-Picture on and off. The shortcut avoids text fields and other editable inputs, so typing a comment or search query is not interrupted.
Runs on
1 site
Developer
Tweek Code
250 lines ·


