A Safari extension that automatically enables Picture-in-Picture (PiP) mode for videos when switching tabs or scrolling to comments.
- Automatic PiP when switching tabs or scrolling to YouTube comments
- Smart detection of actively playing videos
- Automatic disable when returning to video tab
- Support for multiple streaming platforms
- Global on/off toggle to temporarily disable AutoPiP without removing the extension
- Configurable keyboard shortcut to manually trigger PiP (default: ⌥P)
- Blacklist / Whitelist mode to control which sites AutoPiP is active on
brew tap vordenken/autopip https://github.com/vordenken/AutoPiP
brew install --cask vordenken/autopip/autopipThe Homebrew cask removes the quarantine attribute during installation. Launch AutoPiP once, then enable it in Safari → Settings → Extensions.
⚠️ macOS Gatekeeper: AutoPiP is not notarized by Apple. macOS will block both the DMG and the app with a security warning — this is expected. Follow the steps below to allow them. Once installed, updates via Sparkle work without this workaround.
- Download the latest
AutoPiP.dmgfrom Releases - Try to open the DMG — macOS will block it with "cannot be opened because it is from an unidentified developer"
- Open System Settings → Privacy & Security, scroll down and click "Open Anyway"
- Open the DMG again and drag
AutoPiP.appto your Applications folder
- Try to open
AutoPiP.app— macOS will block it again with the same warning- Open System Settings → Privacy & Security, scroll down and click "Open Anyway"
- Open the app again — it will guide you to enable the Safari extension
- Enable AutoPiP in Safari → Settings → Extensions
Updating: Open the AutoPiP app occasionally — Sparkle checks for updates automatically (once per day).
| ✅ Supported | ❌ Not Supported | |
|---|---|---|
| YouTube | Amazon Prime | MAX |
| Twitch | Apple TV+* | |
| Disney+ | ||
| Paramount+ | ||
| Netflix | ||
| Jellyfin | ||
| BiliBili (哔哩哔哩) |
*AppleTV opens the native app instead of Safari
Most HTML5 video players should work. Compatibility may vary based on DRM restrictions and Safari/macOS versions.
- macOS 13.5 or later
- Safari 16 or later
I wanted to add Chrome/Firefox support but Safari is the only browser that allows calling PiP without user-interaction - So unless this changes, AutoPiP will be Safari only
See BUILD.md for instructions on building from source, releasing, and configuring repository secrets.
As this is my first Swift/Xcode project, I welcome:
- Code reviews and suggestions
- Feature improvements
- Bug reports and fixes
New to contributing? Check out our contributing guide.
If you find AutoPiP helpful, consider supporting its development:
- Licensed under GNU GPLv3 - see LICENSE file
- No personal data collection - see Privacy Policy
- Inspired by various PiP extensions
- Built with Safari Web Extension technology
- Thanks to the Swift and Safari development community for resources and documentation
- Updates via Sparkle
- Icons by icons8
Created by vordenken