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.

חיפוש בתמיכה

יש להימנע מהונאות תמיכה. לעולם לא נבקש ממך להתקשר או לשלוח הודעת טקסט למספר טלפון או לשתף מידע אישי. נא לדווח על כל פעילות חשודה באמצעות באפשרות ״דיווח על שימוש לרעה״.

מידע נוסף

Change Menu Item Order of the Bookmarks Context Menu

  • 4 תגובות
  • 0 have this problem
  • 14 views
  • תגובה אחרונה מאת 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.
צילומי מסך מצורפים

פתרון נבחר

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

כל התגובות (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

פתרון נבחר

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?

פרסום שאלה

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