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.

Mozilla Destek’te Ara

Destek dolandırıcılığından kaçının. Mozilla sizden asla bir telefon numarasını aramanızı, mesaj göndermenizi veya kişisel bilgilerinizi paylaşmanızı istemez. Şüpheli durumları “Kötüye kullanım bildir” seçeneğini kullanarak bildirebilirsiniz.

Daha Fazlasını Öğren

Change Menu Item Order of the Bookmarks Context Menu

  • 4 yanıt
  • 0 kişi bu sorunu yaşıyor
  • 14 gösterim
  • Son yanıtı yazan: 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.
Ekli ekran görüntüleri

Seçilen çözüm

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;
}
Bu yanıtı konu içinde okuyun 👍 0

Tüm Yanıtlar (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.

İşe yaradı mı?

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

İşe yaradı mı?

more options

Seçilen çözüm

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

İşe yaradı mı?

more options

Thank you, jscher2000.

That worked like a charm :)

İşe yaradı mı?

Soru sorun

Mesajlara yanıt verebilmek için hesabınıza giriş yapmalısınız. Henüz hesabınız yoksa lütfen yeni bir soru sorun.