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.

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

Change Menu Item Order of the Bookmarks Context Menu

  • 4 svar
  • 0 har detta problem
  • 14 visningar
  • Senaste svar av 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.
Bifogade skärmdumpar

Vald lösning

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;
}
Läs svaret i sitt sammanhang 👍 0

Alla svar (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.

Hjälpsam?

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 :)

Hjälpsam?

more options

Vald lösning

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;
}

Hjälpsam?

more options

Thank you, jscher2000.

That worked like a charm :)

Hjälpsam?

Ställ en fråga

Du måste logga in på ditt konto för att svara på inlägg. Vänligen starta en ny fråga om du inte har ett konto ännu.