Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zswang/jdetects
Detect if DevTools is open
https://github.com/zswang/jdetects
chrome console monitor
Last synced: about 1 month ago
JSON representation
Detect if DevTools is open
- Host: GitHub
- URL: https://github.com/zswang/jdetects
- Owner: zswang
- Created: 2015-06-04T07:47:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-16T16:30:54.000Z (almost 7 years ago)
- Last Synced: 2024-12-26T20:14:28.801Z (about 1 month ago)
- Topics: chrome, console, monitor
- Language: JavaScript
- Size: 11.7 KB
- Stars: 140
- Watchers: 7
- Forks: 25
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jdetects(^^)
[![Build Status](https://img.shields.io/travis/zswang/jdetects/master.svg)](https://travis-ci.org/zswang/jdetects)
[![NPM version](https://img.shields.io/npm/v/jdetects.svg)](http://badge.fury.io/js/jdetects)Detect if DevTools is open
[Find out whether Chrome console is open](https://stackoverflow.com/a/30638226/1068602)
## Examples
### Base
http://jsbin.com/cecuzeb/5/edit?output
```js
jdetects.create(function(status) {
document.querySelector("#devtool-status").innerHTML = status;
});
```### Once onChange
https://jsbin.com/hemipip/edit?js,output
```js
jdetects.create({
once: true,
label: "zswang",
onchange: function(status) {
document.querySelector("#devtool-status").innerHTML = status;
}
});
```