Search for the Article

Retrieves all elements with class name

 You can use the following code in the console to print the inner text of elements with class name 'h3YV2d':



var elements = document.getElementsByClassName('h3YV2d');

for (var i = 0; i < elements.length; i++) {

    console.log(elements[i].innerText);

}



This code retrieves all elements with class name 'h3YV2d' and then iterates over them, logging their inner text to the console.