Этот userChrome.css делает то, что я хочу. В частности, он позволяет мне редактировать URL закладок из меню синей звезды.
/* userChrome.css */
@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
@namespace html "http://www.w3.org/1999/xhtml";
/* Add option to edit bookmark URLs under blue star menu */
#editBMPanel_locationRow {
visibility: visible !important;
}
Этот userChrome.css - мой обычный и делает многое, что я хочу, например, заставляет мои закладки занимать гораздо меньше места на панели инструментов.
/*@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");*/
@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
@namespace html "http://www.w3.org/1999/xhtml";
.bookmark-item{
margin-left: 0 !important;
margin-right: 0 !important;
padding-right: 0 !important;
padding-left: 0 !important;
}
toolbarbutton.bookmark-item .toolbarbutton-text{
display: none !important;
}
toolbarbutton.bookmark-item .toolbarbutton-icon{
margin-left: 2px !important;
}
#PlacesToolbarItems > .bookmark-item > .toolbarbutton-icon[label]:not([label = ""]) {
margin-inline-end: 2px !important;
}
toolbarbutton.subviewbutton.subviewbutton-iconic .toolbarbutton-text{
display: -moz-box !important;
}
/* --- [1] --- */
toolbarbutton.bookmark-item:hover:not(.subviewbutton):not([disabled = "true"]):not([open]) .toolbarbutton-text{
display: -moz-box !important;
}
/* Hide Giant Thumbnail and Favicon */
#editBookmarkPanelImage,
*|div#editBookmarkPanelFaviconContainer {
display: none !important;
}
/* fix right click menu disappearing on highlighted text */
*#contentAreaContextMenu { margin: 12px 0 0 12px };
Но когда я смешиваю их, добавляя
/* Add option to edit bookmark URLs under blue star menu */
#editBMPanel_locationRow, #editBMPanel_keywordRow {
visibility: visible !important;
}
в конец предыдущего файла CSS, я не получаю возможности редактировать URL-адреса из меню с синей звездочкой.
Каждая из этих функций отлично работает независимо, но редактирование закладок - и только редактирование закладок - не работает, когда я смешиваю их. Есть ли какая-либо ясная причина такой несовместимости?
#editBMPanel_locationRow
записью внизу. Я наблюдал за вашим поведением, когда фрагменты не отображались в модальном/диалоговом окне закладок. Затем я поместил его над *#contentAreaContextMenu
записью, и тогда части появились! Это подсказало мне, что проблема, вероятно, заключалась в последней записи в CSS. И действительно, там есть тонкая опечатка:
/* fix right click menu disappearing on highlighted text */
*#contentAreaContextMenu { margin: 12px 0 0 12px };
Точка с запятой в конце второй строки должна быть внутри скобок. Когда я исправляю это и располагаю вашу #editBMPanel_locationRow
запись внизу, все работает:
/*@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");*/
@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
@namespace html "http://www.w3.org/1999/xhtml";
.bookmark-item{
margin-left: 0 !important;
margin-right: 0 !important;
padding-right: 0 !important;
padding-left: 0 !important;
}
toolbarbutton.bookmark-item .toolbarbutton-text{
display: none !important;
}
toolbarbutton.bookmark-item .toolbarbutton-icon{
margin-left: 2px !important;
}
#PlacesToolbarItems > .bookmark-item > .toolbarbutton-icon[label]:not([label = ""]) {
margin-inline-end: 2px !important;
}
toolbarbutton.subviewbutton.subviewbutton-iconic .toolbarbutton-text{
display: -moz-box !important;
}
/* --- [1] --- */
toolbarbutton.bookmark-item:hover:not(.subviewbutton):not([disabled = "true"]):not([open]) .toolbarbutton-text{
display: -moz-box !important;
}
/* Hide Giant Thumbnail and Favicon */
#editBookmarkPanelImage,
*|div#editBookmarkPanelFaviconContainer {
display: none !important;
}
/* fix right click menu disappearing on highlighted text */
*#contentAreaContextMenu { margin: 12px 0 0 12px ;}
/* Add option to edit bookmark URLs under blue star menu */
#editBMPanel_locationRow, #editBMPanel_keywordRow {
visibility: visible !important;
}
Скриншот из тестового профиля: