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
标签:Google,console,log,Chrome,JavaScript,window,detect,mode,https From: https://www.cnblogs.com/profesor/p/16823581.html