Cari Bantuan

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.

Pelajari Lebih Lanjut

Change Menu Item Order of the Bookmarks Context Menu

  • 4 balas
  • 0 memiliki masalah ini
  • 8 kunjungan
  • Balasan terakhir oleh 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.
Lampiran tangkapan layar

Solusi terpilih

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;
}
Baca jawaban ini dalam konteks 👍 0

Semua Balasan (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.

Membantu?

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

Membantu?

more options

Solusi Terpilih

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

Membantu?

more options

Thank you, jscher2000.

That worked like a charm :)

Membantu?

Ajukan pertanyaan

Anda harus masuk ke akun Anda untuk membalas kiriman ini. Sila mulai pertanyaan baru, jika Anda belum memiliki akun.