All Projects â†’ yankouskia â†’ Is Incognito Mode

yankouskia / Is Incognito Mode

Licence: mit
👤Function to identify whether browser is in incognito mode 👀

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
Rpg
Online Role Playing Game (based on Laravel)
Stars: ✭ 121 (-5.47%)
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
Librefox
License: Mozilla Public License 2.0
Stars: ✭ 1,574 (+1129.69%)
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
Firefox Ios
Firefox for iOS
Stars: ✭ 10,638 (+8210.94%)
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
Cyb
Immortal robot for the Great Web
Stars: ✭ 126 (-1.56%)
Mutual labels:  browser
Queue Microtask
fast, tiny `queueMicrotask` shim for modern engines
Stars: ✭ 124 (-3.12%)
Mutual labels:  browser

PRs Welcome GitHub license

NPM

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

DEMO can be found here

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].