[addon] Undelete (BANC)

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.

5 Likes

slight issue:

when i click the one for BANC I get:


then I lose the addon in pyr and gain it in BANC, if I reinstall for pyr:

and I gain it in pyr but lose it in BANC lol

1 Like

I’m in FF (if that makes a diff. to chrome).

1 Like

nvm, i deleted it from temperM, installed both and it works ok in pyr and banc.

1 Like

It works now, because I’ve released new versions of both, lol. There was indeed an issue (thanks for reporting!) - I forgot to change the namespaces for each of them and since both of them have the same name and had the same namespace, they were the same script for TamperMonkey.

1 Like

whopsy daisy lol

1 Like


xD

4 Likes

v. 1.2

The same updates as in the Pyr version.

2 Likes