Ungoogled-chromium: Is there any way to remove CryptoTokenExtension ?

Created on 9 Aug 2020  路  1Comment  路  Source: Eloston/ungoogled-chromium

I have just installed Ungoogled Chromium for the first time on Ubuntu MATE 20.04 from OBS Production Project, and the first thing I've noticed that, there are two extensions that cannot be removed.

1, CryptoTokenExtension
2, Chromium PDF Viewer

Now I'm OK with the PDF Viewer but would like to remove CryptoTokenExtension if there is a way. I've gone through the closed issue #944 but didn't see any way to remove the extension.

Thanks alot.

question

Most helpful comment

From a purely technical standpoint, yes. You can remove its files and its references from the source code and rebuild the browser.

I don't know the specifics for CryptoTokenExtension, but this is what you need to do to remove a built-in extension:

  1. Remove the extension source code (JS and/or HTML) and its manifest.json
  2. Remove references to the extension source code files from the GRIT (.grd) files
  3. Remove references to the IDR_* constants from the C++ code that you just removed from the GRIT files above. To do this correctly, you'll need to remove the code that loads the extension during startup, and any other Chromium code that interacts with the extension (e.g. for CryptoTokenExtension, is there a 2FA browser interface that connects with it?)

Hopefully this answers your question.

>All comments

From a purely technical standpoint, yes. You can remove its files and its references from the source code and rebuild the browser.

I don't know the specifics for CryptoTokenExtension, but this is what you need to do to remove a built-in extension:

  1. Remove the extension source code (JS and/or HTML) and its manifest.json
  2. Remove references to the extension source code files from the GRIT (.grd) files
  3. Remove references to the IDR_* constants from the C++ code that you just removed from the GRIT files above. To do this correctly, you'll need to remove the code that loads the extension during startup, and any other Chromium code that interacts with the extension (e.g. for CryptoTokenExtension, is there a 2FA browser interface that connects with it?)

Hopefully this answers your question.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MilesFM picture MilesFM  路  4Comments

Zoraver picture Zoraver  路  3Comments

usernamenotexist picture usernamenotexist  路  4Comments

Darthagnon picture Darthagnon  路  3Comments

Chilcout picture Chilcout  路  3Comments