Thank you, Dorando -- I love it.
Edit: I find that it is improved by adding the code for "Close and focus left tab", resulting a single keystroke that lets me work backward up the list -- I hit Ctrl-Alt-W, and it removes the bookmark from my bookmarks, close the tab, and moves itself to the tab to the left.
Code: Select all
var itemId = PlacesUtils.getMostRecentBookmarkForURI(gBrowser.currentURI);
if(itemId != -1) {
StarUI._itemId = itemId;
StarUI.removeBookmarkButtonCommand();
}
var tab = gBrowser.mCurrentTab; if(tab.previousSibling) gBrowser.mTabContainer.selectedIndex--; gBrowser.removeTab(tab);
The one "downside" to the combination is that if I had duplicated a bookmark, i.e., bookmarked something that was also in one of my Bookmark Toolbar folders, using this combination removes it from
everywhere -- but as that's the way the Remove Bookmark code is coded, I don't think it's an avoidable circumstance. I just need to be careful in such circumstances.