CSUI Best practices question

Can I get some advice on what is the best way for me to append a new button shown in the screenshots?

The inspected the element and it doesn't seem to have a unique
id
i can target in the content script.

My first hunch is to use
querySelector
but I think this is a very brittle method.

So what is the best way to do this? And how would that method stand against layout changes deployed by OpenAI ?
Screenshot_2024-01-30_at_8.42.29_pm.png
image.png
Was this page helpful?