CLI: grab table of contents on a site

September 7th, 2022

 

[

...document.querySelectorAll('.section--section-title--8blTh')

].map(e=>e.outerText)

(where the html element has the class 'section--section-title--8blTh'