Hacker News new | ask | show | jobs
by zknz 2548 days ago
NYT knows i am in private mode - how is it figuring that out?
1 comments

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"); }); };

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