项目
在 GitHub 查看 
Joe12387/detectIncognito
关于
使用 JavaScript 检测 Chrome、Edge、Safari、Brave、Firefox、Opera 和 MSIE 中的无痕模式及其他隐私浏览模式。
其他项目可以做什么
- ✅ Incognito detection on Google Chrome
- ✅ Private Window detection on Safari (macOS)
- ✅ Private Tab detection on Safari (iOS)
- ✅ Private Window detection in Firefox
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文detectIncognito.js
Efficiently detect Incognito mode & other private browsing modes across most modern browsers.
Features
- ✅ Incognito detection on Google Chrome
- ✅ Private Window detection on Safari (macOS)
- ✅ Private Tab detection on Safari (iOS)
- ✅ Private Window detection in Firefox
- ✅ InPrivate Window detection on Microsoft Edge
- ✅ InPrivate Window detection on Microsoft Internet Explorer
- ✅ Private Window detection in Brave (see notes)
- ✅ Private Window detection in Opera
Demo
Check out the live demo.
Usage
Get the script from CDN (may be blocked by adblockers—see notes):
<script src="https://cdn.jsdelivr.net/gh/Joe12387/detectIncognito@main/dist/es5/detectIncognito.min.js"></script>
Or install via NPM:
npm i detectincognitojs
import { detectIncognito } from "detectincognitojs";
detectIncognito().then((result) => {
console.log(result.browserName, result.isPrivate);
});
Supported Browsers
| Browser | Platform(s) | Versions | Notes |
|---|---|---|---|
| Safari | All | ≤ 26.5 | |
| Chromium | All | 83 to 150 | |
| Firefox | All | 44 to 153 | |
| MSIE | Windows | 11 | Requires Promise polyfill |
Notes
- False positives can occur in certain browser setups or Chrome Guest mode (Issue #21).
- Firefox Container Tabs aren't detected by this.
- The script must run over HTTPS—running locally or via HTTP might fail.
- Brave and uBlock Origin block the CDN; hosting the script yourself avoids this issue.
- An error is thrown if the browser can't be identified.
Similar Projects
- OverpoweredJS – An advanced browser fingerprinting & bot detection solution.
- Established Emails - Positive email reputation API for fraud teams, able to determine the minimum age of billions of emails.
License
Copyright © 2026 Joe Rutkowski
Distributed under the MIT License.
探索相关项目
加载中…