How to array data extracted from this object <div class="gwt-Label">Some Data</div>? : How to array data extracted from this object  <div class="gwt-Label">Some Data</div> ?

    <div class=“gwt-Label”>Some Data</div>?

Since @BrockAdams provided excellent answer and solution for the general problem of data extraction from DIV object, described by class name only (no id) and since the web page is made of 100+ DIV objects, described by the same class name, mainly "gwt-Label"

    https://stackoverflow.com/questions/47973438/how-to-extract-the-text-from-a-dynamic-div-by-class-name-using-a-userscript/47973580#47973580

I am looking for a solution to limit the output to the console from 100+ lines to just few by modifying the code by @BrockAdams below

    waitForKeyElements (".gwt-Label", printNodeText);

    function printNodeText (jNode) {
    console.log ("gwt-Label value: ", jNode.text ().trim () );
}

Since output I read in the console is 100+ lines long but all I need are just few selected lines by array index.

Do you know how to manipulate jNode to save output to array first and have only selected array elements to be reread and send to console ?

I would prefer pseudocode like this

    jNode.text ().trim ()[0]
    jNode.text ().trim ()[5]

run as script in Greasemonkey or Tampermonkey

And what's more, I need to loop the script over numerical query string setting dynamic @match url in the script

thank you

jack

