Automating Safari Google Sheet *Extension* interactions?

I used this template from the forum which uses javascript to click.