Add a policy option to disable Brave Rewards
See original GitHub issueThis is a sub-task for https://github.com/brave/brave-browser/issues/22029
Test Plan:
- Set the policy to disable Brave Rewards:
- [Linux] (sudo is needed in this step) Go to /etc/brave/policies/managed (create folders if not exists already), create test_policy.json with content:
{ "BraveRewardsDisabled": true }
-
[Windows] Open regedit and create the following keys:
BraveSoftware\Brave
under the existing key- For 64 bit,
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Policies
- For 32 bit,
HKEY_LOCAL_MACHINE\SOFTWARE\Policies
Create a DWORD value at this path called
BraveRewardsDisabled
and set the value as1
- For 64 bit,
-
[MacOS]
- Create folder
/Library/Managed Preferences/<username>/
, if one doesn’t exist (you will need to usesudo
) - In the above folder create (or open; you will need to use sudo) the file named
com.brave.Browser.<CHANNEL>.plist
(where <CHANNEL> will benightly
,beta
, or nothing for the release channel: e.gcom.brave.Browser.nightly.plist
) with the content<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>BraveRewardsDisabled</key> <true/> </dict> </plist>
Note: MacOS caches these preferences, so if you delete or rename this file and restart the browser it will still retain this policy. In order to reset the policy quit the browser fully, delete or rename the file and issue to following command:
defaults read /Library/Managed\ Preferences/<username>/com.brave.Browser.<CHANNEL>.plist
You should see output similar to:
2022-09-28 18:46:43.413 defaults[10710:143731] Domain /Library/Managed Preferences/<username>/com.brave.Browser.nightly.plist does not exist
Start the browser and you should be able to see the Rewards feature again.
- Create folder
- Open Brave and navigate to brave://policy. Observe:
- Observe Brave Rewards icon is not shown in the location bar
- Navigate to brave://rewards. Observe
This site can’t be reached
error page. - Navigate to brave://rewards-internals. Observe
This site can’t be reached
error page. - Open application menu (☰). Observe
Brave Rewards
menu item is not present - Navigate to brave://settings. Observe:
Brave Rewards
item is not present in the top Settings toolbarBrave Rewards
item is not present in the left navigation menu- In the Shields section the sentence
This will block most ads on websites, not Brave Private Ads — those are controlled in the Brave Rewards settings.
is replaced withThis will block most ads on websites.
- Open application menu -> More Tools -> Task Manager. Observe
Extension: Brave Rewards
is not present (note that you would need to disable #brave-rewards-webui-panel flag to have the extension loaded normally).
Issue Analytics
- State:
- Created a year ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
How to disable the Brave Rewards feature | TechRepublic
Open Brave and point it to brave://rewards/. · On that page, you can either completely disable brave rewards, disable the earning of tokens...
Read more >Can not disable Brave Ads
The only 2 options I have are: Brave Rewards are disabled. Open Rewards panel to enable and get started; Show Brave Rewards icon...
Read more >How to disable Brave built-in extensions - Developer Builds
I came up with a hack that prevents the Bat Ledger Service from running, and also Brave Shields/Brave Rewards.
Read more >Ability to REMOVE/UNINSTALL Brave Rewards
No, they are not. If you don't opt-in to Rewards, you can see the options to enable it - of course - but...
Read more >Frequently Asked Questions - Brave Browser
A user can always cancel a pending contribution before 90 days have elapsed, and notices appear within the Brave Rewards tipping interface to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Verified with
Verified the test plan from https://github.com/brave/brave-browser/issues/25151#issue-1359473235:
BraveRewardsDisabled
shown on brave://policy pageThis site can’t be reached
error pageThis site can’t be reached
error pageBrave Rewards
menu item is not presentBrave Rewards
item is not present in the top Settings toolbarBrave Rewards
item is not present in the left navigation menuThis will block most ads on websites, not Brave Private Ads — those are controlled in the Brave Rewards settings.
is replaced withThis will block most ads on websites.
Extension: Brave Rewards
is not present in the Task Manager ( under application menu -> More Tools -> Task Manager)Other items checked:
Logged the below follow up issues: https://github.com/brave/brave-browser/issues/25799 - “Chrome Policies” should be “Brave Policies” https://github.com/brave/brave-browser/issues/25800 - policy name should direct to Brave specific documentation, not general Google/Chrome documentation https://github.com/brave/brave-browser/issues/25807 - Update branding on brave://management page https://github.com/brave/brave-browser/issues/25812 - “Start using Rewards” button is available on “Customize Dashboard” settings under Background Images
@GeetaSarvadnya, instead of creating
QWORD (64-bit)
value in the registry, please, create aDWORD (32-bit)
value.