YouTube PiP

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

Аўтар
dmitroderkach
Усталяванняў за дзень
3
Усяго ўсталяванняў
56
Рэйтынг
0 0 0
Версія
2.2.6
Створаны
26.01.2026
Абноўлены
18.02.2026
Памер
221.5 КБ
Ліцэнзія
MIT
Ужываецца на

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.