'Extract options from Javascript tree to insert into word document as a list

First things first, I am not a developer or programmer! But I like to be able to use developer tools to make my working life more efficient, even if I don't fully understand what I'm doing!

Sometimes, I have to create a list in a Word document, from a website list, for other people to choose options without going to the website themselves. Using Firefox and Notepad++, I can do this for HTML dropdownlists.

But, how do I extract the text options from a Javascript tree? Please see the link to the example tree image



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source