disable-devtool
disable-devtool copied to clipboard
The init code force the browser tab be closed
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
Please send me the browser and version number you are using. @gezichenshan
Chrome 121.0.6167.185(正式版本) (64 位) Win11
Same happened on Edge
https://theajack.github.io/disable-devtool
用这个链接复现吗 @gezichenshan