How automate ul and li with javascript?

I got a list which links on every items. I want to automate with javascript following actions :

-Get every items (li) of the list (ul)
-On each items, click on the link (li)
-On each pages where we are after clicking on the li, go back to the previous page (with breadcrumbs) where there is the list

enter image description here

thanks a lot

I dont know how to do this, I am not a developer but this tip would help me a lot. Can you give it to me please?