Debloat chromium browsers with policies

What for example? I would say for the target audiences that these policies are meant for are best suited using Shields.

1 Like

Features like element picker and element zapper for example.

Untrue those are implemented into brave, you do have a built in element picker and zapper

Pick anything else

2 Likes

Where exactly? I don’t use Brave so I may be misremembering. I can give it try to see how it works.

On Desktop: Right click anywhere and you should see the “Block elements” option above “Inspect”

On Mobile: Click Shields icon → Advanced controls → Block element

2 Likes

I’m happy that Brave have documented how to disable via policy a few more of it’s features/anti-features. But there are a lot of settings that still aren’t documented.

I think I’ve got HttpsOnlyMode working through trial and error and Chromium’s documentation. There are a handful of other things I’d like to enable/disable via policy. Does anyone know whether it’s possible to use policies to:

  1. Disable New Tab Page ads
  2. Disable Search Ads
  3. Enable ‘Aggressively block trackers and ads’ in shields
  4. Enable Forgetful Browsing
    • preset some cookie exceptions for forgetful browsing
  5. Disable Brave’s entire advertising & ad analytics subsystem
  6. Disable other crypto/web3 stuff beyond just Brave Wallet

@anon63378639 I recall that you maintained a policy for Chromium, but that was a few years ago. Is that something you still mantain?

2 Likes

From my experience it doesn’t give as fine of a control to select the HTML elements on a page as uBO does. Sometimes it’s tricky and I have to cycle through several options to block precisely what I want. I see that both options allow me to write custom CSS selectors, but I’m way too lazy for that. That’s the only reason why I’m using Brave with uBO now, but would love to not have to.

It’s fine for me, but yes, the picker could get QoL improvements.

Well this is just horrible. A “debloat” script forcefully installed a bunch of bloated extensions that one shouldn’t really need.

To summarize what I think is happening in this thread:
linked ”debloat” scripts = bad

browser group policy configuration = good (if you can handle the browser and platform-specific instructions)

1 Like

Not sure if I’m jumping into conclusions but it seems that you are looking to transform the Brave Browser in some sort of Ungoogled Chromium + uBO via browser group policy. :sweat_smile:

If you get to put it all together do you mind sharing a tutorial via PG wiki?

Yes, but it is in need of a refresh: Brace/brace/etc/chromium/policies/managed/brace.json at d3768eb9a757078c6c742cdfb0e908dfd7527b01 ¡ divestedcg/Brace ¡ GitHub

@celenity also has their own: GitHub - celenityy/Titanium: Policies to harden the privacy & security of Chromium-based web browsers.

4 Likes

I’ve overhauled my policy to support the latest version of Chromium, Chrome, Brave, and uBlock Origin Lite: Brace/brace/etc/chromium/policies/managed/brace.json at a20eafebce5a8b85d15d2e1f05d14adbce49b54f · divestedcg/Brace · GitHub

5 Likes

is there a possibility to make your brave debloat to .reg (file) for windows users, if not its ok

thanks for your work

here: brace-brave-20251218.reg ¡ GitHub
I manually converted it, no idea if it works since I don’t use Windows.
It also lacks the uBOL config.
You can check brave://policy after to see if it took effect.

3 Likes

work perfect

i didnt add uboL coz shields is on

i removed this >> “DnsOverHttpsTemplates”=“https://dns.quad9.net/dns-query” coz portmaster block it

and this >> “DnsOverHttpsMode”=“secure”

some photo of brave://policy , not all list ( huge list)

thanks again

2 Likes

Okay, just wow. Had no idea this existed.

This just absolutely opens up a whole new world of setting up browsers for me! I have always wondered if there was a good way to transfer and even maintain the same settings between Brave profiles. If I recall, the solutions that came up in google search results was to just copy and paste files from one Brave profile to another, which I wasn’t a fan of and therefore never did. But policies seem to maintain settings between profiles in a way that I was searching for all this time!

I wonder if there is a way to have a specific profile linked only with a specific policy in /etc/brave/policies/managed/ directory? Or are all profiles linked to only the first found JSON file?

Either way, so glad that this exists. I love the Arkenfox project, so I hope that a similarly definitive group policy list for Brave arises too. I seriously think we should mention this in the desktop Brave section like we do for Arkenfox in the desktop Firefox section.

Edit: suggestion thread has been made.