https://github.com/zswang/jdetects
Detect if DevTools is open
https://github.com/zswang/jdetects
chrome console monitor
Last synced: 14 days 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 (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-16T16:30:54.000Z (about 7 years ago)
- Last Synced: 2025-05-01T00:46:42.614Z (24 days ago)
- Topics: chrome, console, monitor
- Language: JavaScript
- Size: 11.7 KB
- Stars: 141
- Watchers: 6
- Forks: 24
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jdetects(^^)
[](https://travis-ci.org/zswang/jdetects)
[](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;
}
});
```