How can I remove the "Inspect element" from Chromium portable

1

I'm creating a PHP application that will run exclusively with Chromium, this comes from the php desktop chromium v1 project that can be checked here.

My project is a simple store program running on localhost, and opens inside this Chromium, I would like to know if there is any way to remove the "inspect element" option from the browser, so I read Chromium allows a high range of direct changes by .ini , and wanted to know if there is a way to do this and how to do it if possible. Removal is not critical, but if I had to do it I would be happy to know how.

    
asked by anonymous 14.05.2015 / 11:04

1 answer

1

You can do this by editing the user preference file.

  • Go to the php desktop chromium v1 folder and navigate to: phpdesktop-chromium_v1chromiumDataProfiles .
  • Go to the user's preference folder, in this case the folder Default .
  • Open the file Preferences with a text editor.
  • Search for the devtools keyword using Search ( Ctrl
  • It should look something like this:

    "devtools": {
        "split_location": 214
     },
    

    Leave this section like this:

    "devtools": {
       "disabled": true, "split_location": 214
    },
    
  • Save the file.

  • Open the browser again and see if it worked.

  • 16.05.2015 / 10:04