Vitaliy977
Advanced Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Код: #context-viewimage > hbox.menu-accel-container { -moz-binding: url("data:text/xml;charset=utf-8,<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='click'><implementation><field name='menuitem'>this.parentNode;</field><field name='menu'>this.menuitem.parentNode;</field><field name='newitem'>null;</field><field name='SeaMonkey'>false;</field><constructor><![CDATA[ var newitem = document.createElement('menuitem'); newitem.id = 'context-viewimage-newitem'; newitem.setAttribute('label', 'Открыть изображение в новой вкладке'); newitem.className = 'menuitem-iconic'; this.menu.insertBefore(newitem, this.menuitem.nextSibling); newitem.addEventListener('mouseup', this, false); this.newitem = newitem; this.SeaMonkey = (Services.appinfo.ID == '{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}'); ]]></constructor><destructor><![CDATA[ this.newitem.removeEventListener('mouseup', this, false); ]]></destructor><method name='handleEvent'><parameter name='event'/><body><![CDATA[ event.stopPropagation(); event.preventDefault(); var shift = false; try { if (this.SeaMonkey && Services.prefs.getBoolPref('browser.tabs.loadInBackground')) shift = true; } catch (e) {} var evt = new MouseEvent('click', { bubbles: true, cancelable: true, button: 1, shiftKey: shift }); this.menuitem.dispatchEvent(evt); ]]></body></method></implementation></binding></bindings>#click") !important; } #context-viewimage[hidden="true"] ~ #context-viewimage-newitem { display: none !important; } |
|