#contentAreaContextMenu spacer.arrowscrollbox-overflow-end-indicator { -moz-binding: url("data:text/xml;utf8,<bindings xmlns='http://www.mozilla.org/xbl' xmlns:xul='http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul' xmlns:xbl='http://www.mozilla.org/xbl'><binding id='menu'><implementation><field name='contentAreaContextMenu'>document.getElementById('contentAreaContextMenu');</field><field name='searchselect'>document.getElementById('context-searchselect');</field><constructor><![CDATA[ var menuitem = this.contentAreaContextMenu.insertBefore(document.createElement('menuitem'), this.searchselect.nextSibling); menuitem.setAttribute(%22id%22, %22context-firstsearchselect%22); menuitem.setAttribute(%22oncommand%22, %22var Selection = null; if (gContextMenuContentData && gContextMenuContentData.isRemote) { Selection = gContextMenuContentData.selectionInfo.text; } else if (BrowserUtils.getSelectionDetails) { Selection = BrowserUtils.getSelectionDetails(window).text; } else { Selection = getBrowserSelection(); } var inBackground = Services.prefs.getBoolPref('browser.search.context.loadInBackground'); openLinkIn('https://translate.yandex.ru/?text=' + Selection, 'tab', { inBackground: inBackground, relatedToCurrent: true })%22); menuitem.setAttribute(%22label%22, %22Перевести выделенное Яндекс.Переводчик...%22); ]]></constructor></implementation></binding></bindings>#menu") !important; } #contentAreaContextMenu #context-searchselect[hidden="true"] ~ #context-firstsearchselect { display: none !important; } #urlbar:not(:-moz-lwtheme)[focused], .searchbar-textbox:not(:-moz-lwtheme)[focused] { border-color: Highlight !important; } |