I asked this question before but didn\'t make it clear that I meant in user script, not in JavaScript from a webpage.So I\'ll be more clear now.
Is it possible to de
Nowadays it's quite easy to do this from a content script. Just use
if(chrome.extension.inIncognitoContext) { //you're incognito } else { //you're not }