Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to start browsers in private / incognito mode #49

Open
johnste opened this issue May 14, 2019 · 13 comments
Open

Ability to start browsers in private / incognito mode #49

johnste opened this issue May 14, 2019 · 13 comments

Comments

@johnste
Copy link
Owner

johnste commented May 14, 2019

No description provided.

@johnste johnste added this to the Finicky 2.1 milestone May 14, 2019
@johnste johnste modified the milestones: Finicky 2.1, Finicky 2.2 May 19, 2019
@johnste johnste removed this from the Finicky 2.2 milestone Aug 16, 2019
@niobos
Copy link

niobos commented Oct 15, 2019

An alternative would be to allow an arbitrary script to be run (with the URL as parameter). The script can then launch whatever browser with whatever options it wants

@wenisy
Copy link

wenisy commented Oct 28, 2019

any new updates about it?

@johnste
Copy link
Owner Author

johnste commented Oct 28, 2019

Sorry, no real updates. I am however looking into this currently (as well as #40) and trying to figure out a good approach for it. I've tried a implementation before but it didn't work well unfortunately.

@johnste
Copy link
Owner Author

johnste commented Oct 29, 2019

Ok, so sometimes inspiration (and available time slots) just strikes I guess.

I've just published an ALPHA release of basic Chrome Incognito support, just to try a few things out. Please check it out and tell me if it works for you! It's a really early version and the feature might not work as expected, which is why feedback is most welcome.

https://github.com/johnste/finicky/releases/tag/v2.3-alpha

@johnste
Copy link
Owner Author

johnste commented Nov 13, 2019

I'm interested to hear from people who've tried the 2.3 alpha if it's been working well for them. There's no metrics collection in finicky so I rely on people giving feedback here or over on Twitter to know if stuff is working.

@ghost
Copy link

ghost commented Dec 4, 2019

@johnste - I've got an interesting behaviour - for some reason finicky is opening URL's in Google Chrome in incognito mode - could this be related? Here's my config, it's pretty basic.

module.exports = {
        defaultBrowser: "Firefox",
        handlers: [
            {
              match: finicky.matchHostnames(["docs.google.com", "drive.google.com", "youtube.com", "facebook.com", "global.gotomeeting.com"]),
                browser: "Google Chrome"
            },
            {
                match: finicky.matchHostnames(["apple.com"]),
                browser: "Safari"
            }
        ]
};

@ghost
Copy link

ghost commented Dec 5, 2019

Locally built from master - it doesn't exhibit the same behaviour - https://docs.google.com is opened in a standard Chrome window. Problem occurred with homebrew version (v2.3-alpha (171)).

brew cask reinstall finicky - installs version v2.2.3 (169) - which fixed my issue.

@johnste - I've got an interesting behaviour - for some reason finicky is opening URL's in Google Chrome in incognito mode - could this be related? Here's my config, it's pretty basic.

module.exports = {
        defaultBrowser: "Firefox",
        handlers: [
            {
              match: finicky.matchHostnames(["docs.google.com", "drive.google.com", "youtube.com", "facebook.com", "global.gotomeeting.com"]),
                browser: "Google Chrome"
            },
            {
                match: finicky.matchHostnames(["apple.com"]),
                browser: "Safari"
            }
        ]
};

@bucweat
Copy link

bucweat commented May 22, 2020

Noticed that 2.4 includes "You can now start browsers by file path: e.g. /Applications/Slack.app." Would it be possible to allow for a script (this is mentioned in at least one other feature request #89)? Something that would allow you to provide something like:

/Applications/Microsoft\ Edge.app/Contents/MacOS/Microsoft\ Edge --inprivate {url}

or

open /Applications/PrivateEdge.app --args {url} 

PrivateEdge.app is a application wrapper (e.g. folder structure with MacOS and Contents subfolders) containing a shell script with the first line above. In this case it would open link in Edge in private mode.

Just an idea.

I did try making a "PrivateEdge.app"

PrivateEdge.app
├── Contents
│   └── MacOS
│       └── PrivateEdge
└── PkgInfo

where PrivateEdge contained

/Applications/Microsoft\ Edge.app/Contents/MacOS/Microsoft\ Edge --inprivate $1

This worked fine on command line and I was able to set as browser for some websites in finicky config, but for some reason it opens a normal Edge window instead of a private window. My default browser is Safari BTW.

@meiser79
Copy link

I'm also interested in private/incognito mode, but more in a generic way to e.g. also support Opera.

@johnste
Copy link
Owner Author

johnste commented Jan 31, 2021 via email

@meiser79
Copy link

Thanks to the example in #153, I was able to find the right config to open Opera in private mode.

   handlers: [
      {
         // Open links in Opera when the option key is pressed
         // Valid keys are: shift, option, command, control, capsLock, and function.
         // Please note that control usually opens a tooltip menu instead of visiting a link
         match: () => finicky.getKeys().option,
         browser: ({ urlString }) => ({
            name: "Opera",
            args: ["-private", urlString],
         })
      },
   ]

It's not yet perfect as new links are opened in a new private windows instead of a new private tab if Opera is already started.

@johnste
Copy link
Owner Author

johnste commented Jan 31, 2021

Yes, the reason it's not officially supported is because of issues like the one you mentioned.

@tonymet
Copy link

tonymet commented Sep 30, 2022

args: ["--incognito"] works for Chrome

   // PERSONAL PROFILE
      match: [
        "mail.google.com/*", // match google.com urls      ],
      browser: {
          name:  "Google Chrome",
          profile: "Profile 1", 
          args: ["--incognito"],
      },
    }
  ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants