[addon] Panel Switcher

A very simple script to switch (using Spacebar) directly between the 3D view and the 2 panels (2D x-y and 3D) without the inbetween view of the four panels.

https://github.com/ChrisRaven/Neuroglancer-Panel-Switcher/raw/refs/heads/main/Panel_switcher.user.js

What it does, is that whenever you press the Spacebar, it looks for the button titled “Switch to xy-3d layout.” (the one in the top right corner of the 2D view in 4 panels view) and clicks on it.

If, for some reason it doesn’t work for you, you might increase the delay between the pressing of the Spacebar and the auto-click. To do it, open the script in TamperMonkey and change the time from the current value (0) to the delay you want (in milliseconds). It’s in line 21: }, 0).

1 Like