proginosko / LeechBlockNG-chrome

LeechBlock NG (Next Generation) for Chrome is a simple productivity tool designed to block those time-wasting sites that can suck the life out of your working day. All you need to do is specify which sites to block and when to block them.
https://www.proginosko.com/leechblock/
Mozilla Public License 2.0
72 stars 14 forks source link

Having trouble with preventing leechblock from being uninstalled on brave, Linux. #45

Closed AnonymousWatch3r closed 2 years ago

AnonymousWatch3r commented 2 years ago

Hey, as the title says, I'm having trouble with this. I've read the information linked on this page for linux but I'm still lost. Leechblock is one of my favourite extensions, just a bummer I can easily uninstall it on brave. If anyone knows how to prevent it from being uninstalled on linux,brave. Please let me know.

AnonymousWatch3r commented 2 years ago

btw the link I was referring to was this: https://support.google.com/chrome/a/answer/7517525

proginosko commented 2 years ago

I don't use Brave or Linux, so the following is nothing more than an educated guess pieced together from information I've gleaned in various places. It seems that you need to put a policies JSON file in the directory /etc/brave/policies/managed (and you'll need to create that directory if it doesn't already exist).

So try this:

AnonymousWatch3r commented 2 years ago

Hey there, sorry for the very late reply. Got caught up with exams. So I have done what you said and now I am this stage: Screenshot from 2022-07-13 15-51-48

It says there is an error but seems like I'm getting close now. It does say the "managed by your organisation" thing but the extension can still be removed or disabled as normal.

proginosko commented 2 years ago

Try this policies file instead (remember to rename as .json).

AnonymousWatch3r commented 2 years ago

Thanks a lot @proginosko, you've been great. Thanks for your time and the amazing extension you've made.

proginosko commented 2 years ago

So the second version of the policies file worked?