diff --git a/content/treestyletab/treestyletab.xul b/content/treestyletab/treestyletab.xul index bbfe4d07..574b6731 100644 --- a/content/treestyletab/treestyletab.xul +++ b/content/treestyletab/treestyletab.xul @@ -88,7 +88,7 @@ event.stopPropagation(); this.parentNode.hidePopup(); }" - multipletab-insertafter="tabContextMenu.querySelector("*[id^='context_reloadTab']")"/> + multipletab-insertafter="descendant::*[starts-with(@id, 'context_reloadTab')]"/> + multipletab-insertafter="descendant::*[starts-with(@id, 'context-item-reloadTabSubtree']"/> + multipletab-insertbefore="descendant::*[starts-with(@id, 'multipletab-context-removeAll') | starts-with(@id, 'context_closeTab')][1] | child::xul:menuitem[last()])/preceding-sibling::xul:menuseparator[1]"/> + multipletab-insertafter="descendant::*[starts-with(@id, 'context-item-removeTabSubtree']"/> + multipletab-insertafter="descendant::*[starts-with(@id, 'context_closeOtherTabs']"/> + multipletab-insertafter="descendant::*[starts-with(@id, 'context_bookmarkTab')][1] | descendant::*[@command='Browser:BookmarkAllTabs']/preceding-sibling[1]"/>