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

Asked

Viewed 974 times

1

I am creating a PHP application that will run exclusively with Chromium, this comes from the project php desktop Chromium v1 which can be conferred here.

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

1 answer

1


It is possible to do this by editing the user preference.

  1. Go in the folder of php desktop Chromium v1 and navigate to: phpdesktop-chromium_v1chromiumDataProfiles.
  2. Go to the user’s preferred folder, in this case the folder Default.
  3. Open the file Preferences with a text editor.
  4. Search for the word devtools using the Research (Ctrl + F).
  5. Something like this must appear:

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

    Leave this section like this:

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

  7. Open the browser again and see if it worked.

    inserir a descrição da imagem aqui

  • 1

    great @qmechanik, thanks again! ;)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.