# Remove Add-ons feature

**URL:** <https://discourse.mozilla.org/t/remove-add-ons-feature/80584>\
**Category:** Firefox On Android\
**Tags:** learning\
**Created:** [May 24, 2021, 10:34pm UTC](https://discourse.mozilla.org/t/remove-add-ons-feature/80584 "2021-05-24T22:34:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lawrence\_Imabr](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@Lawrence\_Imabr](https://discourse.mozilla.org/u/Lawrence_Imabr)\
**Post date:** [May 24, 2021, 10:34pm UTC](https://discourse.mozilla.org/t/remove-add-ons-feature/80584/1 "2021-05-24T22:34:13Z")

</div>

I’ve been spending some time modifying Firefox for Android.

I want to disable the “Add-ons” feature but I’ve been unable to do so. It might be because this feature is being loaded from Firefox Components.

How do you disable or hide the Add-ons feature?

Here is a screenshot of the Add-ons menu option

[LXdmq3R.png (580×1212) (imgur.com)](https://i.imgur.com/LXdmq3R.png)

---

<div class="post-metadata">

**Author:** ![pocmo](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/pocmo/32/41218_2.png) [@pocmo](https://discourse.mozilla.org/u/pocmo)\
**Post date:** [May 25, 2021, 8:06am UTC](https://discourse.mozilla.org/t/remove-add-ons-feature/80584/2 "2021-05-25T08:06:29Z")

</div>

Hey!

Fenix is using `WebExtensionBrowserMenuBuilder` in `DefaultToolbarMenu`. This class is responsible for adding the add-on manager entry and entries that add-ons want to add to the menu.

> <https://github.com/mozilla-mobile/fenix/blob/master/app/src/main/java/org/mozilla/fenix/components/toolbar/DefaultToolbarMenu.kt#L84>

If you replace it with a plain `BrowserMenuBuilder` and make the necessary changes then those menu entries should no longer show up.

You may also want to check that add-ons, like the webcompat reporter, are not added since they are trying to add something to the menu.

> <https://github.com/mozilla-mobile/fenix/blob/0141d96465ccd666e411631fbc3026231cf717eb/app/src/main/java/org/mozilla/fenix/components/Core.kt#L137>

---

<div class="post-metadata">

**Author:** ![Lawrence\_Imabr](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@Lawrence\_Imabr](https://discourse.mozilla.org/u/Lawrence_Imabr)\
**Post date:** [May 25, 2021, 7:57pm UTC](https://discourse.mozilla.org/t/remove-add-ons-feature/80584/3 "2021-05-25T19:57:51Z")

</div>

Hi pocmo,

Thank you! This is very helpful.

How do you remove the Add-ons option from the long main menu in addition to the short default menu?

Here is a screenshot of the other Add-ons option in the menu I’m referring to

[Z5LHJ7Z.png (288×602) (imgur.com)](https://i.imgur.com/Z5LHJ7Z.png)

---

<div class="post-metadata">

**Author:** ![Lawrence\_Imabr](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@Lawrence\_Imabr](https://discourse.mozilla.org/u/Lawrence_Imabr)\
**Post date:** [May 27, 2021, 1:16am UTC](https://discourse.mozilla.org/t/remove-add-ons-feature/80584/4 "2021-05-27T01:16:32Z")

</div>

@pocmo any ideas? I really appreciate your help!

---

<div class="post-metadata">

**Author:** ![Lawrence\_Imabr](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@Lawrence\_Imabr](https://discourse.mozilla.org/u/Lawrence_Imabr)\
**Post date:** [May 27, 2021, 8:15pm UTC](https://discourse.mozilla.org/t/remove-add-ons-feature/80584/5 "2021-05-27T20:15:10Z")

</div>

@pocmo for your help figuring this out I’ll send you a tip on PayPal or CashApp. I really appreciate your help!

---

<div class="post-metadata">

**Author:** ![pocmo](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/pocmo/32/41218_2.png) [@pocmo](https://discourse.mozilla.org/u/pocmo)\
**Post date:** [May 28, 2021, 11:25am UTC](https://discourse.mozilla.org/t/remove-add-ons-feature/80584/6 "2021-05-28T11:25:26Z")

</div>

> for your help figuring this out I’ll send you a tip on PayPal or CashApp.

That’s not needed. But thank you!

> How do you remove the Add-ons option from the long main menu in addition to the short default menu?

There are two places to remove the menu option, from the home screen and from the browser screen.

- `HomeFragment`/`HomeMenu`: Here the menu item is added to the home screen.
- `DefaultToolbarMenu`: Here the `WebExtensionBrowserMenuBuilder` will add the addon-manager menu item and menu items for add-ons.

You can remove both with a change like this:

> <https://github.com/mozilla-mobile/fenix/commit/21130564965c357e5cecd60045995a192d4ca7eb>
