yankouskia / Is Incognito Mode
Licence: mit
👤Function to identify whether browser is in incognito mode 👀
Stars: ✠128
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Is Incognito Mode
Cyb Archeology
🌎 Personal immortal robot for the The Great Web
Stars: ✠117 (-8.59%)
Mutual labels: browser
Swift Selection Search
Swift Selection Search (SSS) is a simple Firefox add-on that lets you quickly search for some text in a page using your favorite search engines.
Stars: ✠125 (-2.34%)
Mutual labels: browser
Abstract Leveldown
An abstract prototype matching the leveldown API
Stars: ✠118 (-7.81%)
Mutual labels: browser
Container Query
A PostCSS plugin and Javascript runtime combination, which allows you to write container queries in your CSS the same way you would write media queries.
Stars: ✠119 (-7.03%)
Mutual labels: browser
Foot traffic
Pure Ruby DSL for Chrome scripting based on Ferrum. No Selenium required. Works from any script. Simulate web app usage scenarios in production or locally.
Stars: ✠123 (-3.91%)
Mutual labels: browser
Vertical Tabs Reloaded
Firefox add-on for arranging tabs vertically
Stars: ✠115 (-10.16%)
Mutual labels: browser
Open Browser Github.vim
Open GitHub URL of current file, etc. from Vim editor (supported GitHub Enterprise)
Stars: ✠126 (-1.56%)
Mutual labels: browser
Wendigo
A proper monster for front-end automated testing
Stars: ✠121 (-5.47%)
Mutual labels: browser
Kdeconnect Chrome Extension
A browser extension to send pages and content from your browser to connected KDE Connect devices.
Stars: ✠124 (-3.12%)
Mutual labels: browser
Marionette
Selenium alternative for Crystal. Browser manipulation without the Java overhead.
Stars: ✠119 (-7.03%)
Mutual labels: browser
Marinara
Pomodoro® time management assistant for Chrome
Stars: ✠1,806 (+1310.94%)
Mutual labels: browser
Node Blockly
Blockly for Node.js and Browser via CommonJS module
Stars: ✠117 (-8.59%)
Mutual labels: browser
Kosmonaut
A web browser engine for the space age 🚀
Stars: ✠1,531 (+1096.09%)
Mutual labels: browser
Docx
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
Stars: ✠2,150 (+1579.69%)
Mutual labels: browser
Nocoin
No Coin is a tiny browser extension aiming to block coin miners such as Coinhive.
Stars: ✠1,586 (+1139.06%)
Mutual labels: browser
Queue Microtask
fast, tiny `queueMicrotask` shim for modern engines
Stars: ✠124 (-3.12%)
Mutual labels: browser
is-incognito-mode
👤Function to identify whether browser is in incognito mode 👀
How to use
To install library:
# yarn
yarn add is-incognito-mode
# npm
npm install is-incognito-mode --save
// ES6 modules
import isIncognito from 'is-incognito-mode';
// CommonJS modules
const isIncognito = require('is-incognito-mode').default;
/*
Function returns Promise, which could be:
- resolved with true, if Incognito mode is opened
- resolved with false, if regular window is opened
- rejected if no possibility to identify
*/
isIncognito()
.then(isPrivate => {
if (isPrivate) {
alert('There is no porn! Why are you using Incognito mode?');
} else {
console.log('Incognito mode is NOT activated')
}
})
.catch(e => {
console.log(e.message);
})
Demo
Incognito Window | Regular Window |
---|---|
API
isIncognito: Promise<boolean>
Result Promise
is
- resolved with
true
, if Incognito mode is opened. - resolved with
false
, if regular window is opened - rejected if no possibility to identify
Contributing
is-incognito-mode
is open-source library, opened for contributions
License
is-incognito-mode
is MIT licensed
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].