How to open new incognito window with Javascript? (Google Chrome)

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).

Leave a Comment