HelioSS Цитата: добавить пункт в контекстное меню "Открыть все закладки в новом окне"?
В Stylish, либо userChrome.css (в последнем работу не гарантирую), рестарт:
Код: /*AGENT_SHEET*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#placesContext .box-inherit.scrollbox-innerbox {
-moz-binding: url('data:application/xml,\
\
<?xml version="1.0"?>\%0A\
<bindings xmlns="http://www.mozilla.org/xbl">\%0A\
<binding id="placesContext_extraMenuitem">\%0A\
<implementation>\%0A\
<constructor>\%0A\
<![CDATA[\%0A\
var before = document.getElementById("placesContext_openSeparator");\%0A\
var popup = this.linkedPopup = this.parentNode.parentNode.parentNode;\%0A\
var menuitem = popup.insertBefore(document.createElement("menuitem"), before);\%0A\
menuitem.id = "placesContext_openContainer:window";\%0A\
menuitem.setAttribute("label", decodeURIComponent(\%0A\
"Open All in a New Window"\%0A\
));\%0A\
menuitem.setAttribute("oncommand", "this.cmd();");\%0A\
menuitem.cmd = function() {\%0A\
var node = popup._view.selectedNode;\%0A\
var urlsToOpen = PlacesUtils.getURLsForContainerNode(node);\%0A\
if (!urlsToOpen.length) return;\%0A\
var urls = [];\%0A\
for (var item of urlsToOpen) {\%0A\
urls.push(item.uri);\%0A\
};\%0A\
var uriList = PlacesUtils.toISupportsString(urls.join("|"));\%0A\
var args = Cc["@mozilla.org/supports-array;1"].createInstance(Ci.nsISupportsArray);\%0A\
args.AppendElement(uriList);\%0A\
Services.ww.openWindow(null, "chrome://browser/content/browser.xul", null, "chrome,dialog=no,all", args);\%0A\
};\%0A\
var handler = this.linkedPopupPopupshowihgHandler = function () {\%0A\
var place = (popup._view.selectedNodes.length == 1) && popup._view.selectedNode;\%0A\
menuitem.hidden = menuitem.disabled = !(place && PlacesUtils.nodeIsContainer(place));\%0A\
};\%0A\
handler(); popup.addEventListener("popupshowing", handler);\%0A\
]]>\%0A\
</constructor>\%0A\
<destructor>\%0A\
this.linkedPopup.removeEventListener("popupshowing", this.linkedPopupPopupshowihgHandler);\%0A\
</destructor>\%0A\
</implementation>\%0A\
</binding>\%0A\
</bindings>\
\
') !important;
}