https://github.com/vordenken/AutoPiP Skip to content Navigation Menu Toggle navigation Sign in * Product + GitHub Copilot Write better code with AI + Security Find and fix vulnerabilities + Actions Automate any workflow + Codespaces Instant dev environments + Issues Plan and track work + Code Review Manage code changes + Discussions Collaborate outside of code + Code Search Find more, search less Explore + All features + Documentation + GitHub Skills + Blog * Solutions By company size + Enterprises + Small and medium teams + Startups By use case + DevSecOps + DevOps + CI/CD + View all use cases By industry + Healthcare + Financial services + Manufacturing + Government + View all industries View all solutions * Resources Topics + AI + DevOps + Security + Software Development + View all Explore + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up Reseting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} vordenken / AutoPiP Public * * Notifications You must be signed in to change notification settings * Fork 1 * Star 40 Automatically enables Picture-in-Picture mode when switching tabs (macOS 14+ Safari Extention) License GPL-3.0 license 40 stars 1 fork Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 2 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights vordenken/AutoPiP main BranchesTags [ ] Go to file Code Folders and files Name Name Last commit Last commit message date Latest commit History 16 Commits .github .github AutoPiP Extension AutoPiP Extension AutoPiP.xcodeproj AutoPiP.xcodeproj AutoPiP AutoPiP AutoPiPTests AutoPiPTests AutoPiPUITests AutoPiPUITests .gitignore .gitignore LICENSE LICENSE README.md README.md appcast.xml appcast.xml View all files Repository files navigation * README * GPL-3.0 license AutoPiP Safari Extension A Safari extension that automatically enables Picture-in-Picture (PiP) mode for videos when switching tabs and disables it when returning to the video tab. Note: This is my first coding project using Swift and Xcode. As a beginner, I welcome any help, suggestions, or contributions to improve the code and functionality! Features * Automatic PiP: Automatically enables Picture-in-Picture mode when switching away from a tab with a playing video * Smart Detection: Only activates PiP for actively playing videos * Auto Disable: Automatically disables PiP when returning to the video tab * Wide Compatibility: See Compatibility Status for more information * Status Indication: Visual feedback of extension status through toolbar icon (coming soon) Installation * Download the latest release here Compatibility Status Platform Notes YouTube Twitch Amazon Prime Video Netflix !?[?] MAX !?[?] Disney+ !?[?] Apple TV+ !?[?] Notes on Compatibility * All HTML5 video players should theoretically work * Some streaming services may require additional authentication or have DRM restrictions * Compatibility may vary depending on Safari and macOS versions This compatibility list will be updated as more platforms are tested. Please report your experiences with other video platforms through issues on GitHub. Usage * The extension works automatically when enabled * PiP will activate automatically when: + A video is actively playing including audio + You switch to another tab/app * PiP will deactivate automatically when: + You return to the video tab Requirements * macOS 14 or later * Safari 16 or later Development This extension is built using: * Swift * JavaScript * Safari Web Extension API Current Limitations * Only tested on macOS 15.1 * Toggle functionality via toolbar icon is still under development * Code might need optimization (beginner project) To-Do * [ ] Implement toolbar icon toggle functionality * [ ] Test with other video platforms * [ ] Test on different macOS versions * [ ] Add visual status indication * [ ] Code optimization and cleanup * [ ] Improve documentation * [ ] Publish the app via the App Store Contributing As this is my first Swift/Xcode project, I'm particularly open to: * Code reviews and suggestions * Best practices advice * Feature improvements * Bug reports and fixes * Documentation improvements All contributions are welcome! Feel free to submit issues and pull requests. License This project is licensed under the GNU GPLv3 License - see the LICENSE file for details. Acknowledgments * Inspired by various PiP extensions * Built with Safari Web Extension technology * Thanks to the Swift and Safari development community for resources and documentation * Updater using Sparkle Author vordenken About Automatically enables Picture-in-Picture mode when switching tabs (macOS 14+ Safari Extention) Topics macos application safari-extension safari Resources Readme License GPL-3.0 license Activity Stars 40 stars Watchers 2 watching Forks 1 fork Report repository Releases 2 v0.2 Latest Nov 26, 2024 + 1 release Sponsor this project * buy_me_a_coffee buymeacoffee.com/vordenken Packages 0 No packages published Languages * Swift 57.2% * JavaScript 28.4% * HTML 8.0% * CSS 6.4% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.