How to make Firefox open all links in a private window by default?

3

1

How to make Firefox open all links in a private window by default? (I mean, unless I manually chose to open a link in "normal" mode, or it's a link from a site to itself, it should open it in a private window).

It's annoying when I accidentally open some unknown and/or garbage website in "normal" mode and have to clean up all the crap it has left in cookies, cache, etc… But it's important to keep data of some sites between relaunches, so, for example, I won't have to log in to StackOverflow every time.

Using some hidden settings and/or extensions to solve this problem is OK.

I've found a similar question, but its accepted answer is not good enough for me, as it requires setting up whitelist for cookies, and it's not clear what will happen with other kinds of data that websites can leave.

Display Name

Posted 2015-08-03T07:50:14.467

Reputation: 933

Does this help? browser.privatebrowsing.autostart = true in about:config. I know it's just the default mode, but I set up chrome like this and it really helps me a lot. – Lenniey – 2015-08-03T07:52:35.790

1

Hopefully any solution to this answer will also answer how to open external links in a new private window, though it seems like they could add a new value to the possible values in browser.link.open_newwindow.override.external.

– palswim – 2018-01-27T07:54:26.720

Yeah external links are the toughest "enemy". They sometimes cannot even be copied and the only 2 choices are re-type them by hand or click (thereby opening as usual), well, there's also a 3rd option — screenshot and use something like tesseract, but it's not 100% reliable – Display Name – 2018-01-28T05:47:29.897

Answers

0

Like Lenniey suggested:

  • about:config
  • browser.privatebrowsing.autostart
  • Set as true

Source: Firefox - Use Private Browsing as default browsing mode

Tomblarom

Posted 2015-08-03T07:50:14.467

Reputation: 723

This does not work for links in a tab — they are opening as usual – Display Name – 2015-08-03T15:08:49.763

1Hmmm, no, I got it — it just makes private browsing the only mode of operation. Clearly it's not what was asked :( – Display Name – 2015-08-04T10:00:47.503