In general, a Chrome extension cannot prevent the user from uninstalling it, so LeechBlock cannot offer this as an option within the extension itself.
However, it is possible to “force install” an extension by setting a Chrome Enterprise policy so that the extension cannot be removed or disabled. (You should create a backup of your LeechBlock settings before you attempt this solution: Options > General > Export.)
On Windows, the policy can be set via the Registry Editor:
- Navigate to the following registry key:
- Add a new key under the Chrome key (if it doesn’t already exist):
- Add a new value to that key:
- Name: 1 (or some higher number if 1 is already used)
- Type: String (REG_SZ)
- Data: blaaajhemilngeeffpbfkdjjoefldkok;https://clients2.google.com/service/update2/crx
Warning: Do not attempt to edit the registry unless you really know what you’re doing! You should back up your registry before making any changes. The developer of LeechBlock will not be held responsible for any damage you do to your system by editing the registry.
For information on setting Chrome extension policies on Mac systems, see this article.
For information on setting Chrome extension policies on Linux systems, see this article.