YouTube PiP

Smart Picture-in-Picture mode with all YouTube controls and functions

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Autor
dmitroderkach
Dziennych instalacji
2
Wszystkich instalacji
56
Oceny
0 0 0
Wersja
2.2.11
Utworzono
26-01-2026
Zaktualizowano
21-02-2026
Rozmiar
222 KB
Licencja
MIT
Dotyczy

YouTube PiP

Smart Picture-in-Picture mode for YouTube with full playback controls and navigation.

✨ Features

Core Functionality

  • 🖼️ Document Picture-in-Picture — Opens YouTube mini player in a separate, always-on-top window using Chrome's Document PiP API
  • 🎮 Media Session Integration — Trigger PiP directly from browser's native media controls (e.g., "Enter Picture-in-Picture" button)
  • 🔄 SPA Navigation — Click on video links inside PiP window to navigate without reloading the page

Playback Controls

  • ⏩ Seek Support — Click or drag the progress bar in PiP window to jump to any point in the video
  • 👍 Like/Dislike — Fully functional like and dislike buttons in PiP window
  • 📋 Context Menu — Right-click menu works seamlessly between main window and PiP

Smart Features

  • 📊 Playlist Panel — Automatic window height adjustment when playlist expands
  • 📝 Title Sync — Window titles stay synchronized between main page and PiP
  • ▶️ State Preservation — Playback position and playing state are preserved when closing PiP

📸 Screenshot

YouTube PiP Window

🔧 Requirements

📥 Installation

  1. Install Tampermonkey browser extension
  2. Click the "Install" button on this page
  3. Confirm installation in Tampermonkey
  4. Open YouTube and play any video

🐛 Debug Mode

Enable detailed logging in DevTools console:

localStorage.setItem('YOUTUBE_PIP_DEBUG', 'true');

Then reload the page. Logs include timestamps and are scoped by module.

🔗 Links

📄 License

MIT License — Free to use, modify, and distribute.

⚠️ Disclaimer

This userscript is not affiliated with, endorsed by, or officially connected to Google LLC or YouTube. It is an independent, third-party tool. Use at your own risk. YouTube's site structure and APIs may change at any time.