Delphi TMS WEB Core Component to disable web developer tools from the F12 button, right-click and browser menu.
- Open
TMSWEBDevTools.dproj
in theComponent Library Source
folder within your Delphi IDE. - Install
TMSWEBDevTools.bpl
(You can do this by right-clicking on it in the Projects Window and then clicking on Install). - Add the
Core Source
folder to your Library Paths. You can find the Library Paths underTools
>Options
and then go toLanguage
>Delphi
>Library
.
Simply drop the TWebDevTools
component onto your form and use it via the Enabled
property.
If Enabled
is true
, then you're able to open the browser's developer tools.
This is also the default value for Enabled
.
If Enabled
is false
, then you're not able to open the browser's developer tools.
The web page will instantly close itself if it detects that someone has managed to open the browser's Developer Tools
Browser | Works |
---|---|
Microsoft Edge | ✅ |
Google Chrome | ✅ |
Mozilla Firefox | ✅ |
Apple Safari | Not Yet Tested |
Internet Explorer | ✅ |
360 Browser | ✅ |
QQ Browser | ✅ |