Is it possible to determine if Google Chrome is in incognito mode via a script?
Edit: I actually meant is it possible via user-script, but the answers assume JavaScript is running on a web page. I've re-asked the question here in regards to user scripts.
...
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 determine if Google Chrome is in incognito mode via a user-script (basically a script run as an extension in the browser, not a script being run on a webpage)?
...
On this page I am getting an error in Google Chrome but only when incognito mode. It works fine in regular mode. Is there a reason why JavaScript would throw in error only in incognito mode?
The error is in the jquery-ui.min.js file. Its an
Uncaught SyntaxError: Unexpected token ILLEGAL
...