I want to check browser mode by using Javascript. I found this link, but it doesn't work for new version of Chrome. Is there any new way to check this?
This is an old question, but to answer it: yes, you can still detect incognito in Chromium-based browsers. The gist is you call navigator.storage.estimate() and compare the quota property to performance.memory.jsHeapSizeLimit. If the quota is less than jsHeapSizeLimit, it's incognito.
I have a script that you can take a look at.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.