It is possible to find out whether an element is inside the viewport, but is there actually a way to get the text in the viewport? Of course if the elements are entirely in the viewport the text can be extracted but the difficulty are elements which exceed the viewport, which actually is general case.