- Firefox-Version
- 89
- Betriebssystem
- Win 10
Ich hab bisher (FF88) in dem PopUp, das bei einem Rechtsklick auf einen Ordner in der LeseZeichen-Leiste erscheint, folgenden Eintrag gehabt:
'Alle in neuem Fenster öffnen'
Dazu gehört folgender Code von aborix :
JavaScript
(function() {
if (!window.gBrowser)
return;
let openInWindow = document.createXULElement('menuitem');
openInWindow.id = 'placesContext_openContainer:tabsnewwindow';
openInWindow.label = 'Alle in neuem Fenster öffnen';
openInWindow.setAttribute('oncommand',
'PlacesUIUtils.getViewForNode(document.popupNode).controller.openSelectionInTabs({shiftKey: true})'
);
let openInTabs = document.getElementById('placesContext_openContainer:tabs');
openInTabs.after(openInWindow);
let placesContext = document.getElementById('placesContext');
placesContext.addEventListener('popupshowing', () => {
for (let attribute of ['hidden', 'disabled']) {
if (openInTabs.getAttribute(attribute) == 'true') {
openInWindow.setAttribute(attribute, 'true');
} else {
openInWindow.removeAttribute(attribute);
}
}
});
})();
Alles anzeigen
In FF89 isser weg - ich hätte Eintrag und Funktion gerne in wieder