The following are examples of extracting a ClientRect HTML element
# first tag link of this page document.getElementsByClassName('post-taglist')[0].children[0].getClientRects()[0]
With it, you have rights to the right, top, top, width, left and bottom attributes.
source share