How to access HTML elements in shadow roots? Looking for a code snippet

I want to expand the whole list of subdomains here https://www.virustotal.com/gui/domain/google.com/relations (the second section). You can do this manually by clicking on the button below the list, but it only shows 10 new entries for each click and it is more than 5000 entries…I tried to script this but I am crappy at Javascript and the page contains many levels of shadow roots that I don’t know how to handle.

I read this questionhttps://stackoverflow.com/questions/57813144/how-to-select-element-inside-open-shadow-dom-from-document but I either failed to understand the answers or am too bad at Javascript.

How do I write something that clicks that button in Javascript?

Thank you.