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 ?5 Replies
@edmund has reached level 2. GG!
querySelector is great
@matrix has reached level 6. GG!
prob querySelector('a[href="/"]) works
just fiddle around with some css selectors
@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