Access the parent DOM / window from hosted HTML5 export

I’m trying to access global variables and elements from of a game exported from Gdevelop and hosted on Itch.io … but I can’t figure it out.
All of the “window” and “document” references refer only to the index.html that is created from the export, but I know from looking at the console output on the hosted version that there is a parent DOM with other elements and globals defined… but I seem to be boxed in.
Has anyone else experimented with this, or have ideas on what to do?

This is not GDevelop causing this but itch.io: They are putting your game in an iframe loading the game which is on a different origin, so due to the Same-Origin policy you can’t access the parent context.

Itch.io specifically addresses that I believe:
Manifest actions · The itch.io app book - itch.io

XHR requests are normally limited to the host that served the javascript: in the case of the itch.io app, HTML5 games are served from a custom protocol, and the same-origin policy is disabled so that your HTML5 game can make requests to the itch.io server or to your own server somewhere else.

I just don’t know what Javascript/ DOM path / gdjs method to use to actually access the parent window.