I want to get all the visible text on a page. Visible text is defined as text that users can find by using Ctrl-F.
This question advises using document.body.innerText but this includes non-visible text in option tags.
Is there a good solution for only getting visible text (Ctrl-F able) on a page?