For the sake of clarification, I think this is what we’re talking about:
Instead of having to click the visibility for every layer, you could just hold a single click and drag up or down the list to toggle all the ones you touch.
Blender for example has this convenience feature for various grouped together UI switches. You can even drag over multiple vector components and change the value for all of them at once.