WhoRoger@lemmy.world to Mildly Infuriating@lemmy.worldEnglish · edit-21 year agoWebsites telling me what I can do with my own browser so they can have their pointless cookieslemmy.worldimagemessage-square75fedilinkarrow-up1146arrow-down13file-text
arrow-up1143arrow-down1imageWebsites telling me what I can do with my own browser so they can have their pointless cookieslemmy.worldWhoRoger@lemmy.world to Mildly Infuriating@lemmy.worldEnglish · edit-21 year agomessage-square75fedilinkfile-text
minus-squaredekatron@lemmy.fmhy.mllinkfedilinkEnglisharrow-up1·1 year agoThere are ways to detect private browsing by querying browser features or behaviours that are different in private browsing. For example, in Firefox calling Navigator.serviceworker returns undefined if private browsing is enabled. Check out this script for ways to detect this in popular browsers: https://github.com/Joe12387/detectIncognito/blob/main/src/detectIncognito.ts
There are ways to detect private browsing by querying browser features or behaviours that are different in private browsing.
For example, in Firefox calling
Navigator.serviceworker
returnsundefined
if private browsing is enabled.Check out this script for ways to detect this in popular browsers:
https://github.com/Joe12387/detectIncognito/blob/main/src/detectIncognito.ts