Skip to content

Automatically enables Picture-in-Picture mode when switching tabs and apps (macOS 14+ Safari Extention)

License

Notifications You must be signed in to change notification settings

vordenken/AutoPiP

Repository files navigation

AutoPiP for Safari

Downloads License PRs Welcome

A Safari extension that automatically enables Picture-in-Picture (PiP) mode for videos when switching tabs or scrolling to comments.

✨ Features

  • 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

🚀 Quick Start

  1. Download the latest release here
  2. Install and enable the Safari extension
  3. Start watching videos - PiP activates automatically!

🎯 Compatibility

✅ Supported ❌ Not Supported ⁉️ Untested
YouTube Amazon Prime Netflix
Twitch Apple TV+* MAX
Disney+
Paramount+

*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.

💻 Requirements

  • macOS 14 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

🤝 Contributing

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.

❤️ Support

If you find AutoPiP helpful, consider supporting its development:

Buy Me A Coffee Ko-fi

📝 License & Privacy

🙏 Acknowledgments

  • 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