Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Pomoc pśepytaś

Glědajśo se wobšudy pomocy. Njenapominajomy was nigda, telefonowy numer zawołaś, SMS pósłaś abo wósobinske informacije pśeraźiś. Pšosym dajśo suspektnu aktiwitu z pomocu nastajenja „Znjewužywanje k wěsći daś“ k wěsći.

Learn More

How to update browser.bookmarks.defaultLocation with JavaScript

  • 8 wótegrona
  • 0 ma toś ten problem
  • 1 naglěd
  • Slědne wótegrono wót Jason

more options

The default location of the new bookmark is set in about:config,that is browser.bookmarks.defaultLocation. How can i change it with JavaScript in third-party extensions?

The default location of the new bookmark is set in about:config,that is browser.bookmarks.defaultLocation. How can i change it with JavaScript in third-party extensions?

Wšykne wótegrona (8)

more options

Hi Jason

It is not possible to alter about:config preferences using an add-on.

more options

Paul said

Hi Jason It is not possible to alter about:config preferences using an add-on.

Well. Is there an API to update the default bookmark location?As is usually done by clicking on the collection star.

Wót Jason změnjony

more options

I am sorry, but I do not believe that there is.

more options

Perhaps a policy would do what you want. There is a list of policies on github and searchfox.

https://support.mozilla.org/en-US/kb/customizing-firefox-using-group-policy-windows

Wót Terry změnjony

more options

I researched policy, maybe my knowledge is shallow and I didn't find a solution.

more options

There is also autoconfig.js which enables you to preset preferences. (Remove the blank space in the second link.)

https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig https://www.userchrome. org/what-is-userchrome-js.html

more options

What is your use case for modifying the browser.bookmarks.defaultLocation pref ?

more options

cor-el said

What is your use case for modifying the browser.bookmarks.defaultLocation pref ?

I'm using a third-party bookmark add-on “Bookmark Tab Here”, but Firefox's bookmark button doesn't remember the add-on's most recent bookmark location.