Hacker News new | ask | show | jobs
by catfood 2544 days ago
A bunch of different ways probably. This method is stolen from SO (works for Chrome):

const detect = () => { var fs = window.RequestFileSystem || window.webkitRequestFileSystem; if (!fs) { console.log("FS check failed.."); return; } fs(window.TEMPORARY, 100, function (fs) {}, function (err) { console.log("Incognito"); }); };

1 comments

chrome://flags/, as of Chrome 74, has a setting "Filesystem API in Incognito". Enable that and this way of detecting incognito stops working.