disable-devtool icon indicating copy to clipboard operation
disable-devtool copied to clipboard

The init code force the browser tab be closed

Open gezichenshan opened this issue 1 year ago • 3 comments
trafficstars

import DisableDevtool from "disable-devtool"
DisableDevtool({ md5: "75edd0df185c0b8ecf13b27365ee11b6" })

The code above will close the tab.

Then I added:

...
  DisableDevtool({
    ondevtoolopen: type => {
      const info = "devtool opened!; type =" + type
      alert(info) // If you are worried about blocking the page, use console.warn(info); and open the console to view
    },
  })

It always let the page alert message constantly jump between:

devtool opened!; type =3
devtool opened!; type =4

gezichenshan avatar Feb 20 '24 02:02 gezichenshan

Please send me the browser and version number you are using. @gezichenshan

theajack avatar Feb 20 '24 03:02 theajack

Chrome 121.0.6167.185(正式版本) (64 位) Win11

Same happened on Edge

gezichenshan avatar Feb 20 '24 04:02 gezichenshan

https://theajack.github.io/disable-devtool

用这个链接复现吗 @gezichenshan

theajack avatar Feb 20 '24 06:02 theajack