3 ms·
> without it knowing that it is incognito somehow It has been a while since I was in js land but I do recall writing a browser extension that needed to know th
by crescentfresh 6y ago
> without it knowing that it is incognito somehow
It has been a while since I was in js land but I do recall writing a browser extension that needed to know this, and in chrome it was made available to detect whether your script was running in incognito. It was a property of something.
So I imagine as a starting point the Google Analytics client js could utilize this to avoid interacting with the analytics server altogether.
- gene91 6y agoThe ability by websites to detect incognito cause real usability pains for users. (For example, certain news outlets refuse to show content when it detects that you're in incognito.) The mechanisms to detect incognito were/are unintended holes. Both FireFox and Chrome have been plugging them.
- ehsankia 6y agoWell your information is outdated, because there's been a long game of cat and mouse between chrome and sites likes NYT about detecting incognito, with every alternating version a new method coming up, and it being patched in the following version. [0] https://boingboing.net/2019/07/20/cookie-managers-r-us.html https://boingboing.net/2019/07/20/cookie-managers-r-us.html
- the_gipsy 6y agoRegular js is not able to distinguish incognito mode from some browser API. Extensions get access to a much broader API.