Board Thread:Script Suggestions/@comment-27481084-20170621183047

How would I go about making all headings and subsections collapsible?

It want it to look like this: since subsections have headings, those sub-headings would collapse under the main heading; all sections under some kind of heading would be collapsible and the show/hide button would appear next to each heading by default.

Any help greatly appreciated. 