https://raw.githubusercontent.com/ChrisRaven/BANC-Undelete/main/Undelete.user.js
Another simple addon. This time to add the ability to bring back the unstarred segments. It works for up to 50 removed elements. If you need more, you can change the value of MAX_LENGTH in the code for the appropriate value.
It has its limitations - doesn’t work, if you remove all the segments at once.
It will also add a segment to the queue, if you split any segment (splitting a segment removes the old one, after all).
It has a single list for all the tabs, so if you have more than one instances of Neuroglancer opened, beware of that.
The button to bring back a removed segment is at the top bar near the right side of the screen. The counter next to the “Undelete” label shows, how many segments there are in the queue. When the queue is full, the oldest ones (removed earlier) are removed from the list and you can’t no longer bring them back.