Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7956007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:51:49+00:00 2026-06-04T03:51:49+00:00

I have a Firefox extension that adds several buttons to the nav-bar toolbar using

  • 0

I have a Firefox extension that adds several buttons to the “nav-bar” toolbar using recommended technique (see https://developer.mozilla.org/en/Code_snippets/Toolbar#Adding_button_by_default). Everything works fine, buttons are added on first start, users are able to add, remove or reorganise the buttons.

I need to be able to add and remove these buttons via custom dialog. And here’s the problem: I can add buttons via insertItem method, but there is no removeItem method.

I can remove the item by calling removeChild DOM method and then removing the item ID from toolbar’s currentset attribute. But then I can’t reenable the item before restarting the browser, because it doesn’t return to the palette.

// remove item's ID from toolbar's current set of items
// this does not remove the item
toolbar.setAttribute('currentset', newSet);
document.persist(toolbar.id, 'currentset');

// item is removed, but it doesn't return to palette
// so it can't be added againg before restart
toolbar.removeChild(button);

Is there any way I can not only add, but also remove items from Firefox toolbars programatically? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T03:51:51+00:00Added an answer on June 4, 2026 at 3:51 am

    What happens if you just update the "currentSet" property and don’t call removeChild? That should move the button to the palette I think.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a firefox extension that listens when the firefox has launched using observe:
I am developing a Firefox extension that uses XSL transformations. I have been using
I'm writing a firefox extension and I have a menulist of links that should
I have a working firefox extension that currently consists of a button. When I
I'd like to have my firefox extension display a block of html that overlaps
In the Firefox extension I'm writing, I have a variable containing some data that
I have a Firefox extension that pops up a log-in form (it's a c++
I have written a Firefox extension that catches when a particular URL is entered
I have a Google Chrome extension that opens a Twitter Bootstrap dialog (using JQuery
I am busy developing a Firefox extension and I have a Widget that opens

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.