From 680c21fa660b5ce48607c62d8465df829a248d69 Mon Sep 17 00:00:00 2001 From: theajack <1506282385@qq.com> Date: Sun, 25 Oct 2020 21:01:01 +0800 Subject: [PATCH] feat: index.html --- index.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 904a2b2..cf29a49 100644 --- a/index.html +++ b/index.html @@ -78,6 +78,13 @@ disableDevtool();

<script id='disable-devtool' src='https://cdn.jsdelivr.net/npm/disable-devtool/disable-devtool.min.js'></script>

+

Or use cdn with version:

+ +

<!--Use a specific version--> +<script id='disable-devtool' src='https://cdn.jsdelivr.net/npm/disable-devtool@x.x.x/disable-devtool.min.js'></script> +<!--Use latest version--> +<script id='disable-devtool' src='https://cdn.jsdelivr.net/npm/disable-devtool@latest/disable-devtool.min.js'></script>

+

2. Function

disable-devtool can disable all the methods that can enter the developer tools to prevent ‘code handling’ through @@ -90,10 +97,11 @@ disableDevtool();

  • Disable f12 and ctrl+shift+i shortcuts
  • Support recognition to open the developer tools from the browser menu bar and close the current page
  • Developers can bypass the disablement (use tk and md5 encryption for url parameters)
  • -
  • Support almost all browsers
  • +
  • Support almost all browsers (Include IE)
  • Highly configurable
  • Minimal use, small size (only 6kb)
  • Support npm reference and script tag reference (attribute configuration)
  • +
  • Identify the real mobile terminal and browser developer tool settings plug-in forged mobile terminal, saving performance for the mobile terminal
  • 3. Use