theajack / disable-devtool

Disable web developer tools from the f12 button, right-click and browser menu
https://theajack.github.io/disable-devtool/
MIT License
1.78k stars 169 forks source link

Something wrong with the code #84

Closed westopia closed 6 months ago

westopia commented 6 months ago

Hello, the code is worked perfectly before but when I try to open the devtool again on my own website its doesn't close the page, and the only work is when the website is loaded and open the devtool and refresh its pausing the debugger, well I'm using Brave Browser (Version 1.62.165 Chromium: 121.0.6167.184)

image

reidsneo commented 6 months ago

For me when UBlock Origin ON same issue occured, adsblock plugin make the lib not working

theajack commented 6 months ago

This is because the js file loading is blocked, and bugs that do not belong to the code can be referenced through import instead of introducing a third-party CDN. But it cannot prevent the disabling failure problem caused by disabling all js @reidsneo

reidsneo commented 6 months ago

This is because the js file loading is blocked, and bugs that do not belong to the code can be referenced through import instead of introducing a third-party CDN. But it cannot prevent the disabling failure problem caused by disabling all js @reidsneo

Yes that I want to say, thanks for the clarification Somehow dev and debug like string got caught by the ads blocker, so it wont loaded

westopia commented 6 months ago

@theajack I tried to import the code instead using the CDN even the CDN version is still work like when I open the dev-tool before visiting the website it's will prevent me to load the website properly but the non-CDN version is didn't do same thing, sorry for my terrible English & I'm a beginner on coding so I probably did something wrong?

image

image