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 ?
No description
No description
5 Replies
Arcane
Arcane•11mo ago
@edmund has reached level 2. GG!
matrix
matrix•11mo ago
querySelector is great
Arcane
Arcane•11mo ago
@matrix has reached level 6. GG!
matrix
matrix•11mo ago
prob querySelector('a[href="/"]) works just fiddle around with some css selectors
edmund
edmundOP•11mo ago
@matrix i made some progress here -> https://discord.com/channels/946290204443025438/1201994821020176394 do you think you can give a hand? the query selector works, but the issue i'm facing now is with the button only appearing for a split second
Want results from more Discord servers?
Add your server