YouTube PiP

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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Autor
dmitroderkach
Denně instalací
1
Celkem instalací
56
Hodnocení
0 0 0
Verze
2.2.11
Vytvořeno
26. 01. 2026
Aktualizováno
21. 02. 2026
Size
221,5 KB
Licence
MIT
Spustit na

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.