[HN Gopher] Show HN: AutoPiP - Safari extension for automatic Pi...
       ___________________________________________________________________
        
       Show HN: AutoPiP - Safari extension for automatic Picture-in-
       Picture mode
        
       AutoPiP is a Safari extension that automatically enables Picture-
       in-Picture mode when switching tabs and disables it when returning
       to the video tab. No clicks needed - just seamless multitasking
       while watching videos.  Key features: * Automatic PiP activation
       when switching tabs * Smart detection for active videos only *
       Seamless disable on tab return * Zero configuration needed  GitHub:
       https://github.com/vordenken/AutoPiP
        
       Author : whatsthatabout
       Score  : 37 points
       Date   : 2024-11-27 10:36 UTC (12 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | whatsthatabout wrote:
       | As stated in the readme, 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!
        
         | CharlesW wrote:
         | Nice work! As someone who's about to try their hand at their
         | first Safari extension (and first web extension period,
         | something in the spirit of Tabs Outliner), do you have any tips
         | or tricks you could share?
        
           | whatsthatabout wrote:
           | I read a lot online and of course LLMs can probably help you
           | there. I would suggest if it's nothing macOS/safari specific
           | you want to build, start using chrome and develop the
           | extension for it first. If you want to add safari to the list
           | of supported browser later, you can easily adapt the code (as
           | long as safari supports the apis for it).
        
         | bsimpson wrote:
         | I'm surprised to see native code in a web extension.
        
           | dangus wrote:
           | Safari doesn't use the same extension architecture as Chrome
           | and Firefox.
           | 
           | https://developer.apple.com/documentation/SafariServices/saf.
           | ..
        
             | whatsthatabout wrote:
             | Thats true, but in the end the web extension itself can
             | work with all browsers (if the apis are implemented of
             | course). AutoPiP for example would work without any
             | modifications in chrome/firefox but they implement their
             | own PiP api so it doesn't activate the macOS native one...
        
       | cpressland wrote:
       | This is amazing - I've not had a chance to test this yet but if
       | it works as described then this is something I've been needing
       | without realising it.
       | 
       | Hopefully you'll be able to get this on the Mac App Store at some
       | point, I'd gladly pay for this.
       | 
       | Edit: alternatively Homebrew / Nix.
        
       | kelvinjps10 wrote:
       | I thought this was the default for all browsers
        
       | nosequel wrote:
       | Amazon has prior art on AutoPIP
        
         | zoover2020 wrote:
         | DCMA'd before we know!
        
       | orenlindsey wrote:
       | Just thought you might know - Apple added a new feature in the
       | latest MacOS update that does the same thing. It's called Video
       | Viewer and you can turn it on when a video is playing by clicking
       | the icon that looks like the rectangle with two lines under it.
       | 
       | Yours is seamless and you don't have to turn it on every time,
       | though.
        
         | whatsthatabout wrote:
         | Hey man, yeah I actually saw that! Before this I used another
         | safari extension for it but I thought I could automate it -
         | born was AutoPiP!
        
       ___________________________________________________________________
       (page generated 2024-11-27 23:00 UTC)