faisalman / ua-parser-js

UAParser.js - The Essential Tool for User-Agent Detection in JavaScript & Web Development.
https://uaparser.dev/
GNU Affero General Public License v3.0
8.85k stars 1.18k forks source link

Detect incognito mode #727

Open jlarmstrongiv opened 1 month ago

jlarmstrongiv commented 1 month ago

Is your feature request related to a problem? Please describe. My website depends on certain features, like OPFS, which only works in some browsers in incognito mode. Being able to detect usage of incognito mode will allow me to properly warn users that my site literally will break, e.g. in Safari in Incognito mode.

Describe the solution you'd like Add an incognito function to either the UAParser API Reference or Submodules

Describe alternatives you've considered Using a different library

Additional context I support you with both business and enterprise licenses