Is it still possible to detect incognito mode in Chrome from version 83 by javascript? It seems to me that from version 83 detecting by temporary storage quota <= 120 mb (method below):
if ('storage' in navigator && 'estimate' in navigator.storage) {
const {usage, quota} = await navigator.storage.estimate();
console.log(`Using ${usage} out of ${quota} bytes.`);
if(quota < 120000000){
console.log('Incognito')
} else {
console.log('Not Incognito')
}
} else {
console.log('Can not detect')
}
for incognito has stopped working...