How to detect if you are in Incognito mode in Google Chrome with JavaScript
var fs = window.RequestFileSystem || window.webkitRequestFileSystem; if (!fs) { console.log("check failed?"); } else { fs(window.TEMPORARY, 100, console.log.bind(console, "not in incognito mode"), console.log.bind(console, "incognito mode")); }
credit: https://stackoverflow.com/a/27805491/20110298
https://ourcodeworld.com/articles/read/805/how-to-detect-if-you-are-in-incognito-mode-with-javascript-in-google-chrome
https://ourcodeworld.com/author/sdkcarlos