I want to help my friend open a website in a new incognito window when he performs some mouse gestures (custom stroke in Mouse Stroke - Chrome Extension).
Asked
Active
Viewed 3.9k times
38
-
22mouse stroke eh. – CiscoIPPhone Feb 09 '10 at 09:54
-
21you say friend, eh? – Adam Kiss Feb 09 '10 at 10:37
-
14This is a good question - not for the porn, but for the ability to have two separate sessions on the same website. – Adam A Sep 22 '10 at 22:08
-
3Google lead me here - I was looking for a way to open Facebook/Twitter in incognito windows from a bookmarklet for privacy. Would appreciate any ideas. – edoloughlin May 20 '11 at 18:34
2 Answers
32
Chrome extensions with the tabs
permission can use the chrome.windows.create
method:
chrome.windows.create({"url": url, "incognito": true});
However, to access it, you'll either need to write your own extension or find an existing one which provides a suitable hook (I don't know whether this can be done with "Mouse Stroke"—I'm too scared to look).

eggyal
- 122,705
- 18
- 212
- 237
-
-
3@CarlosPliego: it's just HTML and Javascript—write one yourself? https://developer.chrome.com/extensions – eggyal Jun 17 '16 at 16:25
-
6I dare say this is outdated. In the console it looks like the `windows` object doesn't exist anymore. – Jacksonkr Mar 22 '17 at 18:22
-
-1
windows.create still works for me given I use it from the background script.

TheIrishPizzaGuy
- 21
- 5