Important Notice: We're experiencing email notification issues. If you've posted a question in the community forums recently, please check your profile manually for responses while we're working to fix this.

On Monday the 3rd of March, around 5pm UTC (9am PT) users may experience a brief period of downtime while one of our underlying services is under maintenance.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Change Menu Item Order of the Bookmarks Context Menu

  • 4 replies
  • 0 have this problem
  • 14 views
  • Last reply by Slouch

more options

I would like to swap the order of the first 2 items on the Bookmarks Context Menu - that is "Open in New Tab" should be second, and "Open in New Window" should be first.

I'm able to do this on the "regular" context menu with the following code...

#context-openlink { 
   order: -1;
}

But I cannot find the correct selector for the Bookmarks Context menu (see attached image).

I have tried code (to no avail) such as the following...

#placesContext-openlink { 
   order: -1;
}
#BMB_bookmarksPopup-openlink { 
   order: -1;
}

Any help is appreciated!

Thanks.

I would like to swap the order of the first 2 items on the Bookmarks Context Menu - that is "Open in New Tab" should be second, and "Open in New Window" should be first. I'm able to do this on the "regular" context menu with the following code... #context-openlink { order: -1; } But I cannot find the correct selector for the Bookmarks Context menu (see attached image). I have tried code (to no avail) such as the following... #placesContext-openlink { order: -1; } #BMB_bookmarksPopup-openlink { order: -1; } Any help is appreciated! Thanks.
Attached screenshots

Chosen solution

Weirdly, the ID has a colon in it:

https://searchfox.org/mozilla-release/source/browser/components/places/content/placesContextMenu.inc.xhtml#46

This is the only way I figured out to write a rule for it, as an attribute:

menuitem[id="placesContext_open:newwindow"] {
  order: -1 !important;
}
Read this answer in context 👍 0

All Replies (4)

more options

That almost sounds like a userChrome.css edit to do what your asking if those are the default browser settings that is the only other way I can see the change being made.

Helpful?

more options

markwarner22 said

That almost sounds like a userChrome.css edit to do what your asking if those are the default browser settings that is the only other way I can see the change being made.

Hi Mark,

Yes it's definitely a userChrome.css edit.

I'm looking for the correct CSS code to edit the menu.

Thanks for the reply :)

Helpful?

more options

Chosen Solution

Weirdly, the ID has a colon in it:

https://searchfox.org/mozilla-release/source/browser/components/places/content/placesContextMenu.inc.xhtml#46

This is the only way I figured out to write a rule for it, as an attribute:

menuitem[id="placesContext_open:newwindow"] {
  order: -1 !important;
}

Helpful?

more options

Thank you, jscher2000.

That worked like a charm :)

Helpful?

Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.