项目作者: nicolauns

项目描述 :
Detect if browser DevTools is open
高级语言: HTML
项目地址: git://github.com/nicolauns/devtools.detect.git
创建时间: 2019-08-11T11:37:19Z
项目社区:https://github.com/nicolauns/devtools.detect

开源协议:MIT License

下载


devtools.detect

Detect if browser DevTools is open

Also works if DevTools is undocked. Useful for when you want something to happen when DevTools is open.

:japanese_goblin: Demo

CDN

  1. <script src="https://cdn.jsdelivr.net/gh/nicolauns/devtools.detect@1.2.0/devtools-detect.min.js"></script>

Usage

  1. devtools.detect(function(status){
  2. alert('Is DevTools open? ' + status);
  3. });

Support browsers

Browser Supported
Chrome
Firefox
Opera
Safari
Mobile Safari ✓¹
Edge
IE11
IE10

License

MIT © Nic.