13

As a sysadmin, I frequently want to open internal web apps in incognito mode, for a variety of reasons that have nothing to do with privacy. To use a different set of credentials, perhaps. Or to prevent cross-contamination between two sessions with the same app. Or ... well, you get it, we're all running complex systems.

I would love to be able to make a link open in an incognito tab or window (ideally in all browsers, but primarily in Opera). Something like:

<a target="_incognito" href="https://were.hunting.wabbits.com">Qwiet</a>

Or:

<a href="javascript:OpenInIncognito('https://were.hunting.wabbits.com');">Qwiet</a>

Or, worst case, make a bookmark do that.

Every discussion I can find of this boils down to "You shouldn't want to do that because ... privacy!". But, of course, this isn't a privacy use case, and I really couldn't care less if a forensic investigator can find out I've been accessing these web apps. It's part of my job, after all. I just want some isolation, and I'd like to do it without opening a variety of different browsers or using multiple machines or VMs.

3 Answers3

10

You may achieve that with the JavaScript function windows.create(), it accepts an optional incognito parameter, see MDN web docs:

incognito
Whether the new window should be an incognito (private) window. Note that if you specify incognito and tabId, the ID must refer to a private tab — that is, you can't move a non-private tab to a private window.

Example: windows.create({"url": url, "incognito": true});

Check Browser compatibility.

Edit:

Sorry, but above Solution won't work in a web page, as the windows object is not available there. It may only work for browser extensions.

LarS
  • 245
3

According to this stackoverflow answer it is impossible

https://stackoverflow.com/a/16148152/6820123

And because you don't want it because of privacy reasons, this is the reason why browsers have no such function. Browsers are made for the masses and there is a bit security and privacy way more important than a insecure function for a very special use case.

Quanten
  • 143
3

You could create a desktop shortcut and use the -incognito flag and the web address to get it done, as per the following page:

https://www.tekrevue.com/tip/incognito-mode-shortcut/

This is a bit worse than the "worst case" you outlined, but if you'll be testing the same pages repeatedly, it might not be so bad.

thegrapesoda
  • 116
  • 3