YouTube PiP

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

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

Yazar
dmitroderkach
Günlük kurulumlar
2
Toplam kurulumlar
56
Değerlendirmeler
0 0 0
Versiyon
2.2.11
Oluşturulma
26.01.2026
Güncellenme
21.02.2026
Boyut
222 KB
Lisans
MIT
Geçerli

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.